Questions tagged [command-line]
This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.
22,919
questions
1
vote
1
answer
905
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), ...
130
votes
8
answers
177k
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 ...
1
vote
2
answers
11k
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
4
answers
9k
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 ...
12
votes
4
answers
22k
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 ...
76
votes
5
answers
87k
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?
56
votes
2
answers
42k
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 ...
4
votes
1
answer
1k
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
2
answers
1k
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. Can ...
21
votes
6
answers
22k
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?
4
votes
1
answer
11k
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
1
answer
1k
views
61
votes
6
answers
45k
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?
79
votes
3
answers
20k
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
3
answers
6k
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 ...
18
votes
1
answer
7k
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?
64
votes
7
answers
312k
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
5
answers
218
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. ...
9
votes
3
answers
805
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.
14
votes
4
answers
21k
views
How do I add a repository from behind a proxy?
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--: ...
10
votes
4
answers
4k
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 ...
6
votes
5
answers
6k
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
2
answers
4k
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!
2
votes
3
answers
10k
views
How to give a password to ubuntu user, which password recommendation does not pass?
When you install ubuntu you can input password for user account which even if are weak or un-recommended are allowed. But when from the command prompt if you type
passwd
it gives ratings on strength ...
1
vote
2
answers
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 ...
82
votes
6
answers
62k
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
2
answers
2k
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 ...
126
votes
4
answers
82k
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
4
answers
2k
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 Ctrl+...
2
votes
1
answer
4k
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
0
answers
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. How ...
15
votes
5
answers
41k
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
URxvt.talicFont:...
233
votes
17
answers
294k
views
How to change Gnome-Terminal title?
I have several instances of terminals running in my working environment, what I would like is to set a specific title for each one, in order to have a clear idea what purpose the specific terminal ...
10
votes
2
answers
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 ...
11
votes
3
answers
11k
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?
11
votes
0
answers
2k
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 Edit > ...
15
votes
2
answers
15k
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 ...
77
votes
5
answers
185k
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?
50
votes
6
answers
130k
views
How to log CPU load?
How to log CPU load to a file in order to investigate a problem?
1
vote
4
answers
1k
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
1
answer
287
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 ...
7
votes
2
answers
4k
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?
245
votes
6
answers
944k
views
How to create an empty file from command line
How can I create an empty file from the command line?
197
votes
3
answers
528k
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
58
votes
4
answers
47k
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 ...
7
votes
1
answer
3k
views
How to disable right-click menu in terminal?
I'd like to disable right-mouse-click pop-up menu in Ubuntu terminal so that mouse right click to be passed to the application (Midnight Commander, to select files with the right mouse button). How to ...
22
votes
7
answers
79k
views
Create USB installer to install Ubuntu from the command line?
I'm trying to create a bootable USB image to install Ubuntu on a new computer.
I have done this before following the "create USB drive" instructions for Ubuntu desktop, but I don't have an Ubuntu ...
23
votes
10
answers
12k
views
Which aliases do you find most useful or helpful to your Ubuntu experience?
Since first becoming an Ubuntu user I have developed a growing list of aliases, and there are some that I cannot imagine being without. This makes me think that there are probably still tons of ...
1
vote
2
answers
440
views
Avoid dialogue by opening a shell script?
When i have an executable script and i runs it by double-clicking it
in Gnome.
It opens a dialoguebox that asks, what is intended to do:
execute in terminal
view
cancel
execute
Is there a way to ...
15
votes
3
answers
23k
views
Shell command to bring a program window in front of another?
Does a shell command exist to bring a already started program in gnome in the front of another.
i.e.:
Gedit and Nautilus are started.
Nautilus is in the background and Gedit in the foreground.
How ...