Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (5)

3
votes
4answers
3k views

Retaining bash prompt colors when starting a screen session

When I ssh into a Ubuntu Lucid box the prompt is all pretty, with colors. Everything is the default, as far as I know. Here's my $PS1 outside screen: \[\e]0;\u@\h: ...
4
votes
1answer
817 views

How can I automate creation of videos from an image and an audio track?

There are many videos on sites such as Youtube that simply contain album art and an audio track. This is easy to do with tools such as openshot or pitivi but it is time consuming. Is there a script or ...
21
votes
5answers
6k views

Search function in the terminal?

I have written a program that outputs a lot of text to the terminal. I am looking for certain words in the text to see if I have done it right, but simply reading the text is impossible. Are there ...
1
vote
1answer
1k views

How do I set command line mode vga=788 permanently?

I have a problem that is not of easy resolution, happen to tell... I have Installed Ubuntu 10.10 Server. I want to join to the system way vga=788, into the grub it changes without any problem ...
3
votes
3answers
730 views

What do each of the TTYs do?

I know that Alt+Ctrl+F1-F6 take me to available command lines, and that F1 command line is used for debugging, and F8 is the GUI desktop, that what i know but today i noticed there in F7 that does ...
5
votes
2answers
4k views

How can I Display a Progress Bar in mplayer?

Is there a way to display a progress bar in mplayer (running without a gui)? (I'm launching the mplayer command from the terminal like $ mplayer video.avi .) Or is there simply any kind of ...
27
votes
6answers
81k views

How to close vim from the command line?

I know this is more of a general linux question but w/e. So when I enter a program like vim in the command prompt it displays all the text in the file and I can edit it etc. But I can't figure out how ...
1
vote
1answer
854 views

Problem after last update

I am having a problem after the last update, the booting to command line problem I even can't start in the graphic fail system "xfail": X: cannot stat /etc/X11/X (no such file or directory), ...
33
votes
5answers
50k views

How do I get long command lines to wrap to the next line?

Something I have noticed in Ubuntu for a long time that has been frustrating to me is when I am typing a command at the command line that gets longer (wider) than the terminal width, instead of ...
0
votes
2answers
2k views

Accessing main menu

I removed my main menu from the Applications menu and want to access it. How can I do this through the command line? I'm using Ubuntu 10.10.
3
votes
4answers
4k views

Handle Doc/Docx Templates on a headless server to produce PDFs preferably without using OpenOffice.org

On a production web server I have to produce letters based on a template I got in MS-Word binary format. I use PHP and for the search and replace task I found PHPWord, which can handle Docx files, so ...
7
votes
3answers
7k views

Ubuntu slows down over time?

About a few months ago I was using Ubuntu (doing something in the command line) when it started lagging really bad. I would hit S (or any other key) and like 20 seconds later it would show up in my ...
21
votes
5answers
19k views

How do I download the command-line emacs instead of the GUI one?

I used sudo apt-get install emacs to download emacs. I expected the command-line emacs to start when I ran emacs but instead the GUI emacs started. How can I download the command-line emacs?
19
votes
2answers
7k views

How do you share history between terminals in zsh?

How can it be achieved so that every command that is entered, is visible in every open terminal's history? When having multiple terminals open, the history isn't shared, i.e. what you entered in one ...
3
votes
1answer
281 views

Is there a way to open a terminal from xdg-open or nautilus?

I asked and was answered at this post about opening a GUI explorer from a command line. How about the other way around? I mean, is there a way to open a terminal from xdg-open or nautilus?
7
votes
2answers
994 views

How can I change the Terminal prompt to something simple? [duplicate]

Possible Duplicate: Hide current working directory in terminal When I open a terminal it shows something like dave@daves:~$ or dave@daves:~/Desktop$. I don't want the dave@daves to show up. ...
19
votes
5answers
11k views

What's the equivalent to 'explorer .' (Windows) or 'open .' (Mac)?

Inside the terminal, I could use the command 'explorer .' in Win32 or 'open .' in Mac to open GUI explorer/Finder. What's the equivalent command in Ubuntu?
3
votes
1answer
3k views

Where does the Samba workgroup come from when Samba is not running?

Using findsmb on my home network gives me this: IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION --------------------------------------------------------------------- 192.168.1.3 MINI ...
3
votes
1answer
443 views
37
votes
6answers
9k views

Is there a difference between the '&&' and ';' symbols in a standard BASH terminal?

They seem to both signal BASH to commence with another command following the symbols but is there a distinct difference?
54
votes
1answer
7k views

How to protect Ubuntu from fork bomb

I heard someone talking about a fork bomb, I did some research and found some dreadful information about some strange looking characters people can have you type at the command line and as a result do ...
4
votes
3answers
3k views

How to execute a shell-command in Vim, and have the result printed below?

I'd like to edit shell commands from vim, and execute them from vim. Currently I use !!sh (pipes current line to command sh), but this removes the line itself. Is it possible to execute the command ...
10
votes
1answer
814 views

How can I get a list of all open windows in the command line?

How can I produce a list of all open windows, including dialog boxes and duplicates, from the command line?
20
votes
5answers
53k views

How can you quickly get the complete path to a file for use in terminal?

How can you quickly get the complete path to a file for use in terminal?
5
votes
5answers
199 views

Is there an additional set of information that references more than the man page?

In reading some the questions I find some commands I am not familiar with. I will run a man page on the command and reference the other questions entry to get a better understanding of the command. ...
8
votes
3answers
510 views

Is there a way to determine how to launch any program from the command line

Even if there isn't a cli interface. I would like to be able to launch it/ kill it from command line.
12
votes
3answers
12k views

How do I add a repository from behind a proxy?

Hi I've a problem at the office. We're behind a proxy (which is set and applied at ubuntu proxy settings) and when I try to add a repository from terminal, I get: Error reading --some url here--: ...
9
votes
4answers
2k views

How to make in CLI check for updates to be happening every 4 weeks and install them automatically without going to Software sources?

I have a set of custom commands I run on my computers after I install them. How do I make Ubuntu check for updates every 4 weeks and install them automatically on check? I would need this done via ...
5
votes
5answers
3k views

I would like to create a log of all commands typed in terminal

I would like to have a log of all command that are typed on the terminal. I have check "script" but this generates a file with the commands and the responds all together. Is there a way to have the ...
4
votes
2answers
933 views

How to list currently not installed packages?

I'd like to output a list of all currently not installed packages (they are visible in Synaptic for example) using only shell commands. How do I do this? Thanks!
1
vote
2answers
2k views

XFCE shortcut problem

Every time, when i hit k button in a terminal window in vim, so it happens fairly often, it invokes the Find pop-up. I could not find where this can be turned off. I do not have this problem at home ...
44
votes
6answers
13k views

What is the difference between ./ and sh to run a script?

I have written a simple script. When I runsh <myscriptname.sh>, i got the correct output, but when I run ./<myscriptname.sh>, I got an error. What is difference between when I do sh and ...
2
votes
2answers
869 views

SSH Key problem

I want to setup my home server to use ssh keys but when I follow the tutorial on https://help.ubuntu.com/10.04/serverguide/C/openssh-server.html for setting up ssh keys I get this: Bad port 'umask ...
30
votes
3answers
5k views

Remove note about sudo that appears when opening the terminal

Whenever I open the terminal, To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. appears before the terminal. How do I get that to go ...
8
votes
4answers
1k views

Two gedit plugins clash. How to change shortcut keys, or enable/disable a plugin

Gedit has two plugins from Gnome's Gedit Plugins page which I both particularly want... Multi-edit Control Your Tabs However they both vie for the same shortcut keys: Ctrl+PageUp and ...
2
votes
1answer
2k views

How to set port forwarding to use terminal server client?

I'm using the terminal server client in Ubuntu to connect to a Windows machine in another location but I don't get it to work. I wonder what should be the port forwarding setting so I can connect. So ...
2
votes
0answers
7k views

How to auto-boot into text mode? [duplicate]

Possible Duplicate: How to disable X at boot time? How to configure my Ubuntu 10.10 Desktop (Maverick) to start in a Terminal like mode? I don't want any graphics. I can't get rid of GDM. ...
10
votes
5answers
16k views

How do I make urxvt render xft fonts?

I wonder whether there's a way to make urxvt render xft fonts: URxvt.font: xft:Droid Sans Mono Slashed:pixelsize=9:Regular URxvt.boldFont: xft:Droid Sans Mono Slashed:pixelsize=9:Bold ...
10
votes
3answers
1k views

High resolution CLI?

I want the resolution of my console to match my screen resolution(1440x900). 1024x768 works fine but for some reason when I put 1440x900 when I switch to ttyX the command prompt is almost right off ...
5
votes
2answers
3k views

always prompt the user before executing a command in the shell

Is there a utility that always prompts the user for confirmation before executing a command similar to the way sudo asks for password?
6
votes
0answers
442 views

How do I enable the terminal bell? [duplicate]

Possible Duplicate: Beep in shell script not working? When using the Terminal application in Ubuntu I never seem to hear any alerts. How do I turn these sounds on? I've tried looking in ...
7
votes
1answer
4k views

Lock Tmux Session With Vlock

I have just installed tmux and vlock. When I try to perform the lock-session command, my terminal flashes and then nothing happens. Is there something in my .tmux.conf that must be added to tell tmux ...
37
votes
5answers
50k views

Can I install extra drivers via the command prompt?

Since I can't seem to open the Additional Drivers program? And how do I know what driver I need to install?
10
votes
2answers
10k views

How to log CPU load?

How to log CPU load to a file in order to investigate a problem?
0
votes
4answers
778 views

Why don't those winepath commands work?

I tried code from this question and for some reason they do not work, why and how to fix them? a@ubuntu:~$ echo "#!/bin/sh" > ~/bin/run_linx_program bash: !/bin/sh": event not found a@ubuntu:~$ ...
3
votes
1answer
257 views

Meta package / quick reference for command line string manipulation tools?

The latest version of the Scribes text editor lets us select some text, hit Alt+X, and then run an arbitrary command. For example, I can run the sort command and the selected text is replaced ...
6
votes
2answers
1k views

How do I use bash's “<<” operator?

I know bash has a >> operator, to append output to files, but what is the use of the << operator?
70
votes
5answers
170k views

How to create an empty file from command line

How can I create an empty file from the command line?
36
votes
1answer
88k views

Command to append line to a text file without opening an editor

Assuming i have a line that i want to add to a file without opening an editor. How could i append this line alias list='ls -cl --group-directories-first' to this file config.fish
27
votes
3answers
12k views

How do I find the build dependencies of a package?

I'd like to find out which packages sudo apt-get build-dep <package> would install (if I already got some dependencies installed, I'd also like to see those → so running or simulating the ...