3
votes
3answers
202 views

Rename files incrementally in a specific directory?

I have a directory containing bunch of .txt files , I need a command to rename these files by one command , so their name will be : file1.txt , file2.txt, file3.txt , etc . Any Help ?
0
votes
3answers
322 views

Autocomplete terminal commands [duplicate]

I had done this previously but now I don't remember the trick, Something like when you type in command in terminal it should auto complete it by matching it with the similar commands given in History, ...
2
votes
1answer
154 views

Running a Adobe AIR application on a headless remote server

I am trying to install an Adobe AIR file running ssh in a terminal (no GUI): sudo Adobe\ AIR\ Application\ Installer -silent -eulaAccepted MyAirApp.air But I receive the following error: (Adobe ...
2
votes
2answers
441 views

How to launch a terminal from script and another script to run in terminal

I run a script when I log in that basically looks like this: chromium-browser & xchat & cd ~/randomdir && gnome-terminal & qbittorrent & On the third line (cd ~/randomdir ...
1
vote
1answer
122 views

Bring all open terminal windows forward using a script

I am trying to use a script suggested for an answer I asked earlier, however I am having trouble getting it to work. The script should bring all instances of a program (whose name is passed as an ...
2
votes
2answers
209 views

Can we control a terminal-window size from a '.desktop' file

The .desktop file opens a python script in the terminal. (with 'Exec' and Terminal = true). Could any other parameters be included so as to open the gnome-terminal in a specific profile or a ...
1
vote
3answers
245 views

How to remove rick roll script at terminal startup?

I injected an sh script (https://github.com/jart/rickrollrc) using ./astley.sh inject evil for a joke but now when I need the terminal I have to wait and then lets me do commands. How do I UN-inject ...
3
votes
1answer
414 views

Launching php script through comman line - keeping terminal window open after execution

Oh, my girlfriend really likes it when I launch php scripts! There's something special about them, she says ... Thus, I coded this script to run throught the CLI (Command Line Interface) - so it's ...
1
vote
0answers
172 views

Continue script in terminal after pkill fullscreen program

I'm running a fullscreen program and i'm using pkill to close it by a keyboard shortcut. Killing the program works but my kill script also contains some other code. The rest of the script isn't being ...
4
votes
2answers
5k views

How to write Bash script What is the command to open a terminal with two different tabed terminals and execute some commands separately tabs?

How to write Bash script to open a terminal with two tabs, and execute commands in both tabs? for instance: tab 1 opens skype tab 2 opens chromium-browser In the end, I want one more thing: write a ...
5
votes
2answers
3k views

How can I run an application in gnome-terminal automatically when booting?

I need to run an application automatically when Ubuntu starts. I've got this app running without opening the terminal. However, this application displays some information in a terminal window and, ...
2
votes
2answers
561 views

How can I programmatically get the PID of the active GNOME Terminal instance?

How can I get the PID of the GNOME Terminal instance I'm using from within a Bash script? I can run xprop _NET_WM_PID and then manually click the terminal window, but I'd like to completely automate ...
0
votes
1answer
384 views

Execute command before starting terminal copy file

What Happens I write this line to copy an image to my local home dir cp .cache/wallpaper/0_4_1280* .image.jpg and all is well ....so I think it would be great if terminal would do this on start. ...
2
votes
1answer
73 views

how can I have two scripted operations each have their own gnome-terminal?

I have two scripted operations that take hours and both print to the console. I would like to avoid having their output interleaved because that looks a bit of a mess. How would I write a script ...
2
votes
2answers
910 views

How to pass arguments in a script using gnome-terminal

As part of a script I have gnome-terminal -e "process involving another user" Once executed this line, I have to write in the terminal 3 times the password of this user. I wonder how can I automate ...
2
votes
1answer
525 views

What start up scripts are executed when a terminal is opened in Ubuntu?

When I open a terminal, it says cannot execute the binary file and the output is something like this, bash: /home/sandeep/bin/uname: cannot execute binary file bash: [: =: unary operator expected ...
4
votes
2answers
340 views

Combine Two Commands In a Script

I want to put two commands together I need the script to login: ssh root@192.168.0.188 Then I need to the script to run (while logged in to root@192.168.0.188 via ssh ): find ...
13
votes
5answers
12k views

How to start a terminal with certain text already input on the command-line?

Rather than rephrasing my question, let me describe to you the desired user-case: I create a short shell-script to run command "gnome-terminal --someoptionflagname 'my text to be posted'", and ...