Tag Info

Hot answers tagged

4

Change the colors on an incidental basis If it is meant to change colors on an incidental basis: You can use the setterm command: setterm -term linux -back <background_colour> -fore <text_color> -clear from the colors, you can chose from (both fore- and background): black|blue|green|cyan|red|magenta|yellow|white|default for more options: ...


3

You can do it using wmctrl. To install it use in terminal, sudo apt-get install wmctrl To switch to firefox use the following command in terminal, wmctrl -a firefox Actually it switch to a window with name containing 'firefox' in it. see man wmctrl for more.


3

The GNOME terminal binary is located at /usr/bin/gnome-terminal. Don't mix that up with /bin/bash. GNOME terminal starts bash, but there's no sense in starting a bash session on its own in a GUI.


3

tee is designed to split STDIN into a file and back out to STDOUT. In simple terms, just pipe it through, like so: nmap www.somesite.com | tee file.txt The current accepted alternative involves running nmap twice which is a horrible idea. You'd be better off running it once to file and then outputting the file. nmap www.somesite.com > file.txt; cat ...


3

There are multiple answers here, depending on what you want (this answer is valid in bash and zsh shells, others may vary). If you need to run a command in background and you know it before running it, simply add a & at the end of the command (using sleep 60, do nothing during 1 minute, as example command): [romano:~] % sleep 60 & [1] 9054 1& ...


2

You can type exit. You can type ctrl-d. Or (if you're on a virtual terminal), you use ctrl-alt-F8.


2

To redirect only stderr of evince to /dev/null and send it to the background at the same time you need to specify evince name.pdf 2> /dev/null &


2

In order to open your terminal in Unity, press Ctrl+Alt+T, or press Super, then type 'terminal' and hit enter. Edit: I see that you're using Ubuntu 10.04, so ubuntu-desktop probably comes with GNOME, I'm not sure if that Ctrl+Alt+T opens the terminal then, but you can find it in the menu; Applications → Accessories → Terminal. It is also worth noting that ...


2

This example will run updates in the background: sudo apt-get dist-upgrade -y & Just note the singe &. If you want to hide the stdout, do following: sudo apt-get dist-upgrade -y > /dev/null &


2

add & to the command. Example: $ cp FromA ToB &


2

The various colour codes that used for obtaining coloured output can also be used to obtain coloured backgrounds: 40 black 41 red 42 green 43 yellow 44 blue 45 magenta 46 cyan 47 white Therefore, the following command turns my background red: $ echo -e '\e[0;41m' Depending on the shell, the terminal emulator, etc., you might not need the -e.


2

Information as found on this page, excluding preview column: Sequences are composed of the Escape character (often represented by ”^[” or ”<Esc>”) followed by some other characters: ”<Esc>[FCm” (where FC is one of the numbers in the bulleted list below). In bash, the Esc code can be either of the following: \e \033 (octal) \x1B (hexadecimal) ...


1

You are out of luck: GtkSettings:gtk-keynav-wrap-around has been deprecated since version 3.10 and should not be used in newly-written code. This setting is ignored. While gnome-terminal in Ubuntu is only 3.6.2, libgtk-3-0 is 3.10.8.


1

Solution with Terminator from this site. sudo vi /usr/share/terminator/terminatorlib/terminal.py Look for function : on_buttonpress Revert button test (contextual menu go to middle click, paste on right click) : def on_buttonpress(self, widget, event): ... if event.button == 1: ... elif event.button == 3: ... elif ...


1

After many hours of searching $ sudo apt-get purge pango-graphite worked for me. This was broken on a dist upgrade to 14.10, and since I spend 90+% of my time in mate-terminal or gnome-terminal this was truly driving me crazy. Thanks!


1

Here is what worked for me in ubuntu 14.04, I tried to maintain similar overall look, and make the inactive tabs less bright. edit the file ~/.config/gtk-3.0/gtk.css to contain TerminalWindow .notebook tab:active { background-color: #f5f4f3; foreground-color: #000000; } TerminalWindow .notebook tab { background-color: #d2d1d0; ...


1

This is a confirmed bug (see launchpad) The current work-around is: From a terminal: sudo apt-get update sudo apt-get install unity dconf reset -f /org/compiz/ This will reinstall unity and reset the config. If that doesn't works then: sudo apt-get update sudo apt-get install ubuntu-desktop rm -f /home/user/.config/dconf/user but be aware that this ...


1

Install gnome tweak tool (gnome-tweak-tool), and there you have the option under "Windows" -> "Window focus mode"


1

Question Solved by Original Poster: Ubuntu 14.04 Gnome shell display changed. How to restore default Just forgot to restore the original skin for the Shell.


1

This Q How can I install software or packages without Internet (offline)? has a crazy amount of "offline reposiory" type apps. But if you can run an online apt-get update a basic answer would be found here (if you've got Synaptic available) Select packages to install in Synaptic File -> Generate package download script Run script on an internet-connected ...


1

That is exactly what tee is for. Why do you not want to use that? An alternative might be to capture the output, and echo it twice: output=$(nmap localhost) echo "$output" echo "$output" > somefile.txt However, in the special case of nmap, you can take advantage of it's output option -ox : OUTPUT: -oN/-oX/-oS/-oG <file>: Output ...


1

Its name is gnome-terminal :-)



Only top voted, non community-wiki answers of a minimum length are eligible