0
votes
2answers
29 views

gnome-terminal profile without bash history

I'm trying to create a profile in gnome-terminal that doesn't store bash history. The easiest way to do that is to run export HISTIGNORE="*", but there is one problem, gome-terminal is executing ...
2
votes
2answers
163 views

Opening multiple terminal tabs and running command

I need to open multiple terminal tabs, give them titles, go to a directory, and make each tab run a command. I am new to Linux and shell scripting, after searching online and checking some solutions, ...
17
votes
3answers
3k views

Why doesn't “cd” work in a shell script?

What is wrong with this easy script? I just want to write an script which change my directory: A. I put below commands on the file witch its name is pathABC on the /home/alex directory, #!/bin/sh cd ...
3
votes
3answers
312 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 ?
30
votes
7answers
6k views

Repeat a command every x interval of time in terminal?

How can I repeat a command every interval of time , so that it will allow me to run commands for checking or monitoring directories ? There is no need for a script, i need just a simple command ...
0
votes
3answers
1k 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
250 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
1k 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
134 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
257 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
286 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
545 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
181 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 ...
5
votes
2answers
6k 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
4k 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
681 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
403 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
78 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
1k 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
595 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
355 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 ...
14
votes
5answers
14k 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 ...
10
votes
3answers
3k views

How to automate starting terminal instances for specific tasks

I'm going through some programming tutorials and for every session, I have to start up at least 3 terminal windows (one for a log file tail, one for testing output, one for running various shell ...