New answers tagged

-1

Thanks for all your answers. I did try several things: the nohup command works fine, only it will not close the old terminal. the killall command works too, only it will not close the old terminal. the posted code from glenn also works, but can't close the old terminal? Thanks to this answers i've got a lot of new insights. Also i found that a terminal ...


1

I'll assume that you're running those commands in a script. Keep in mind that $$ is the pid of the running bash process. If you're running a script, that script's bash process is a child of your current interactive shell. If you kill $$ in the script, you're killing the script, not the parent shell. Bash stores the parent pid in the $PPID variable, so you ...


0

As kos suggested, what you asked would be: ls -lt $PWD | grep ^d | tail -n +1 | head -1 | cut -b 51- But honestly you could improve that function. For example, if you used grep -m 1 ^d, you wouldn't need head -1, or you could use mawk '/^d/ { print $NF; exit }' and you wouldn't need grep, head and cut!. But the main flaw I (and others who commented ...


0

There's a great explanation of this problem on this Super User answer: How can I fix a Broken Pipe error?. Commands in pipes are run asynchronously: this means that in a pipe such as command1 | command2 there's no guarantee that command1 will end before command2. When using [...] | grep | head -n 1, head ends as soon as it has read one line; if this ...


0

Another terminal that would work and hasn't been mentioned here is Gnome Connection Manager: http://kuthulu.com/gcm/ This is actually my personal favourite because it allows you to connect to multiple machines in a very user friendly way. You can set it up to automatically copy selected text, and text can be pasted using right click.


1

The syntax to be used with the gsettings command is described in GNOME Terminal Frequently Asked Questions. First you need to find out the identifier of the profile you want to change. For example, the identifier of the gnome-terminal default profile can be obtained from schema org.gnome.Terminal.ProfilesList. Then change the desired keys of path ...


-1

This is easy : playername video_or_audio_file_name And you should not be under root.


1

You could install and use xttitle (Note the doubled t in the name). I use it like this in a file sourced by my ~/.bashrc: # from the "xttitle(1)" man page - put info in window title update_title() { [ $TERM = xterm -o $TERM = xterm-color ] && xttitle "[$$] ${USER}@${HOSTNAME}:$PWD" } cd() { [ -z "$*" ] && builtin cd $HOME [ -n ...


1

The title can be set using escape sequences as shown in How to change xterm title. ( Specifically for bash ). In their example, they use case statement that sets PS1 with an enclosed escape sequence. case $TERM in xterm*) PS1="\[\033]0;\u@\h: \w\007\]bash\\$ " ;; *) PS1="bash\\$ " ;; esac The basic idea is to ...


1

As taken from SuperUser.com, The process is a little complex to explain here since it is different for every shell you use. Rather I'll give you two links: How to Change the Title of an xterm (Comprehensive instructions for many different shells) Show the current Command in your Bash window Title. A nice step by step procedure on how the author went on ...


0

If you really need multiple instances of gnome-terminal process running (but why should you?), follow the steps at https://wiki.gnome.org/Apps/Terminal/Debugging except for the gdb part.


0

Similar to Yoga's method, Edit >> Profile Preferences >> Title and Command >>Title >> When terminal commands set their own titles: >> "Prepend initial title" Then execute: gnome-terminals --save-config=terminals-cfg close terminals windows open a new terminal, and in it execute: gnome-terminals --load-config=terminals-cfg Works good for me, all ...


1

Open System Settings and go into User Accounts. Select your user, and there should now be an option on the right to enable automatic login. Turn that on and you're done.


3

From man gnome-terminal: -x, --execute Execute the remainder of the command line inside the termi‐ nal. When sh -c xinput set-prop 10 "Device Enabled" 0 is evaluated in order to be executed, sh is interpreted as the executable to be run, and the arguments to sh are splitted on spaces; so xinput is intepreted as ...


0

If your Ubuntu 14.10 desktop is installed by default settings, then the desktop environment is most likely to be Unity instead of GNOME. In Ubuntu Unity, command line tools like Terminal and XTerm are pre-installed. You can open a terminal window easily by Ctrl + Alt + T. @andrew.46 Or you can click the Ubuntu logo on the upper left desktop, then type ...


3

By default, standard Ubuntu with Unity Desktop comes with the terminal emulators gnome-terminal and the more basic xterm. Normally the shortcut Ctrl+Alt+T should bring up one, usually the gnome-terminal. You can also search in the Dash's application lens for terminal emulators: No idea why it shows the Sudoku there... :D In case you (or anybody else) ...


0

Perhaps the easiest way to test whether a Terminal application has been installed on your system (and it would be unusual if this was not the case) is to use the following keyboard command: Ctrl+Alt+ T. Reference: Starting a Terminal


1

Great solution by Walter Tross, but if you don't want to do all the job, here is the download link: FixedsysExcelsiorIIIb-L2_Mono.ttf


2

See also "keeping persistent history in bash" for another alternative. It rigs your prompt to send all commands ever typed into any terminal into a "persistent history" file (alongside what's usually done for the regular .history).


2

[Adding an answer since the accepted one no longer works.] GNOME Terminal has flip flopped several times on this subject. This configuration feature was removed in gnome-terminal 3.14 (included in Ubuntu 15.04 Vivid) https://bugzilla.gnome.org/show_bug.cgi?id=727743 https://bugzilla.gnome.org/show_bug.cgi?id=730632 Then in gnome-terminal 3.16 (included ...


0

Was looking at few links and finally found the below working: $ nmcli dev list|grep IP4 The output is: IP4.ADDRESS[1]: ip = 195.168.0.107/24, gw = 192.168.0.1 IP4.DNS[1]: 192.168.0.1 IP4.DOMAIN[1]: local Also all the network related details can be found using putting simply: $ ...


1

No, the terminal is not a text editor (even though it can be used as one). The terminal is a program where you can issue commands to your system. Commands are nothing but binaries (executables in the form of binary language) and scripts located in specific paths of your system. Each command executes one specific task. There are a few text editors for the ...


0

I got the answer on this page - A very good tutorial. https://ubuntugenius.wordpress.com/2011/07/11/how-to-change-the-command-line-prompt-colour-in-the-ubuntulinux-terminal/


0

These are the colors of the command prompt. You need to change your prompt as such: export PS1="\e[0;31m[whatever]\$ \e[m" where 0;31 is the color code. Here's a list of color codes: Color Code Black 0;30 Blue 0;34 Green 0;32 Cyan 0;36 Red 0;31 Purple 0;35 Brown 0;33 Blue 0;34 Green 0;32 Cyan 0;36 Red 0;31 Purple 0;35 ...


0

Have you tried profile preference? Right click in the terminal window for accessing it and in the color tab see if you can have what you wish for.


0

The linked answer is about SFTP, which is more complicated. Configuring ssh server is much easier. Step 1 : Install OpenSSH package if not installed sudo apt-get install openssh-server Step 2 : Add to your /etc/ssh/sshd_config PermitRootLogin no Step 3 : Restart sshd service. sudo service ssh restart Step 4 : Generate key pair on the computer from ...



Top 50 recent answers are included