1
vote
0answers
20 views

How can I choose the audio output device using the terminal?

I have a digital headphone set and an analog pair of speakers. Is there a way for me to switch between them in the terminal in Ubuntu? I ask that because I would like to create a keyboard shortcut for ...
2
votes
2answers
124 views

Print command result side by side

It is possible to print the result of 2 commands side by side... Something like this something `ls -l /a` `cat bla.txt` result: total 24 #while [ 1 ...
2
votes
2answers
121 views

Long terminal output;time consuming code; no forethought

I am running a rather complex python script in Ubuntu 12.10 for the last seven days. It must have generated atleast 20k lines of output on the terminal till now but not all of it is visible. I ...
8
votes
2answers
1k views

Output URL of open firefox tabs in terminal

I would like to find out the URLs of the currently opened firefox tabs with a terminal command. Is there any possibility? This way I would be able to write them into a text file and look at them ...
7
votes
5answers
2k views

How to get and copy a too long output completely in terminal?

In terminal a command has a too long output. But when I scroll back I see it is truncated and only the last part is shown. In Gnome-Terminal and Konsole I have this problem. In xterm there's not such ...
0
votes
2answers
297 views

Displaying output of arbitrary command on Unity panel

In my current setup running Ubuntu Natty and GNOME 2, I use the COMPA applet to display information on my top GNOME panel that I wish to always be visible on my desktop. I really like this ability to ...
2
votes
4answers
7k views

Using grep, awk, etc. to filter command output

I'll use route as an example. route -n The above outputs routing information. The top row is your active connection. I can manipulate the output to only the second column by doing: route -n | awk ...
0
votes
4answers
5k views

Changing colors in terminal output

When i write scripts i want that some lines are colored in output. My questions is not about changing prompt (PS1) but for example how can i change that the output, let us say, "cat ...
6
votes
2answers
8k views

How to echo output of a top into a text file?

I want to write batch or something, that will write output of top into a file on login. I did top >> output-file but it contains some strange character! can somebody give a simple tutorial ...