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

learn more… | top users | synonyms (5)

1
vote
3answers
2k views

How to Write a Shell Script to Move Files from FTP Server to Network Share Drive

I have customers who upload large amounts of data to my FTP server (an Ubuntu 9.10 machine). Once the files are uploaded, I am faced with transferring them to a local Droboshare network drive so our ...
8
votes
3answers
14k views

How is the default TERM shell variable value set?

After upgrading to Maverick I have my TERM variable set to 'dumb', this does not happen with the same home dir running from Lucid and I didn't manually changed anything related to TERM. Any idea ...
2
votes
2answers
293 views

How can I make a console window only appear if the command I'm running produces output? [closed]

I run the following at regular intervals in order to sync my laptop with my desktop. When there's nothing to do, and therefore no output from unison, i want it to complete silently; when there's ...
3
votes
2answers
1k views

Is there a terminal/command-line interface to the 'Appearance Preferences' dialog?

Hopefully the title sums it up, but I'm looking for a way of being able to switch the Appearance Preferences' Visual Effects option to 'None', from a terminal/script (and optionally later to be able ...
25
votes
8answers
9k views

Multiple terminal windows

I develop code. I use terminal alot. I use many terminal windows alot. I hate how tabs look. Any useful applications that allow for multiple terminal use, and streamline my development. allow me to ...
10
votes
3answers
3k views

How to automate starting terminal instances for specific tasks

I'm going through some programming tutorials and for every session, I have to start up at least 3 terminal windows (one for a log file tail, one for testing output, one for running various shell ...
4
votes
1answer
2k views

Aliases: difference between .bash_rc, .bash_aliases and /usr/local/bin

Playing around with Terminal, I noticed that there are many ways to create permanent aliases. I'm a Linux newbie, and from what I know, doing: sudo ln -s /path/to/esecutable ...
3
votes
2answers
1k views

Quotation marks in Ubuntu Terminal

I'm using Ubuntu 9.04 as a guest in VMWare. When I am using quotations marks in terminal, the first pressing of the key produces nothing, while the second one produces a double quotation mark looking ...
1
vote
2answers
2k views

How to get rid of odd error line when ALT+TAB'ing away from an emacs launched in terminal

I have a very fresh install of lucid 10.04 64bit, fully upgraded, and with a raft of additional packages added. Amongst them is emacs (23.1+1-4ubuntu7). I habitually launch emacs from a terminal. I ...
11
votes
3answers
3k views

Replace grep command with grep -n --colour?

Because I'm lazy.... any time I want to use grep, I want it to be grep -n --colour. Is there a way to permanantly map this?
15
votes
6answers
12k views

How to determine where biggest files/directories on my system are stored?

I was wondering how do you know where the largest files in my system are stored. For example--- Disk Space Used: 1GB Java: 500MB Java Percentage: 50% maybe represented in a pie chart. Maybe? I know ...
13
votes
3answers
10k views

How can I safely shutdown/reboot/logout KDE from the command line?

I am not talking about shutdown and reboot commands. I want to initiate the same routine from command line that would be performed if I would press the logout/reboot/shutdown button inside the KDE ...
21
votes
6answers
21k views

Can I use NetworkManager without a tray/dock/bar?

I would like to use NetworkManager, but prefer a keyboard driven window manager that provides as much space on the screen as possible for my code. I just hate that little strip of real estate "trays" ...
158
votes
9answers
159k views

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
3
votes
3answers
268 views

I have a catch 22 here! No internet unless I update [closed]

I have a usb internet tether, but it will not work in Ubuntu, unless I download something in the terminal, but I also can not get internet until I get this device working. I am able to use my Windows ...
34
votes
10answers
111k views

How can I create a select menu in a shell script?

I'm creating a simple bash script and I want to create a select menu in it, like this: ./script echo "Choose your option:" 1) Option 1 2) Option 2 3) Option 3 4) Quit And according to ...
107
votes
10answers
38k views

Moving from bash to zsh

I'm considering moving from bash to zsh as I often come across posts praising zsh. I'm an experienced command line user and I'm assuming the basics are pretty much the same, so I'm looking for advice ...
12
votes
6answers
6k views

Can I use banshee from the command line?

I love Banshee media player in general, and I already have an important library of music, which I've spent a lot of time organizing (labeling, correcting, etc). I also use the command line a lot, so ...
5
votes
4answers
3k views

How to start terminal with present working directory as “Home” instead of default “Root”?

When I start my terminal the current working directory is always "/". I want it to start from "/home/<username>" i.e. my home. Any solution for this?
61
votes
6answers
62k views

How to create a permanent “alias”? [duplicate]

If you create an alias for example: alias cls="clear" It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" ...
12
votes
4answers
16k views

How can I have multiple terminal sessions through one single SSH connection?

I have an Ubuntu server edition running and I can SSH into it to perform various tasks. What I'd like is the ability to SSH into my server kick off a server application and then switch to another ...
232
votes
7answers
204k views

How do I determine the total size of a directory (folder) from the command line?

Is there a simple command to display the total aggregate size (disk usage) of all files in a directory (folder)? I have tried these, and they don't do what I want: ls -l, which only displays the ...
107
votes
7answers
285k views

How can I restart x-server from the command line?

How can I restart x-server from the command line? I'd really like to be able to restart my gui without having to do a full system reboot.
2
votes
1answer
869 views

Using Kate's terminal plugin, how can I clear the terminal's history?

I want to clear all the history that I can scroll to, so that I start with a terminal without anything in it exempt the prompt. clear only creates a clear screen, but does not delete the scroll ...
5
votes
3answers
2k views

How do you start-up in the login screen with Num Lock on? [duplicate]

Possible Duplicate: How to enable numlock at boot time for login screen? I use numbers in my password and would therefore like to start Ubuntu with Num-Lock enabled. This would also be ...
56
votes
5answers
60k views

Coolest looking terminal IRC client [closed]

I am looking for a IRC client for the terminal that has colors, user list and just generally looks awesome ;) Any recommendations? There are loads of IRC clients in the repositories and I don't want ...
12
votes
2answers
565 views

How do you use a shell other than bash at a terminal as default?

When you drop to the terminal via Applications -> Terminal or Ctrl+Alt+F1 etc. bash is used by default to interpret your commands. If you wish to use another command interpreter (like zsh or fish), ...
43
votes
8answers
123k views

How do you reset a USB device from the command line?

Is it possible to reset the connection of a USB device, without physically disconnecting/connecting from the PC? Specifically, my device is a digital camera. I'm using gphoto2, but lately I get ...
26
votes
13answers
2k views

Tips for getting to grips with the command line

When I first migrated from Windows to Ubuntu, by far the most daunting thing I had to do was use the command line. Typing commands is an alien experience when you've only ever been used to pointing ...
12
votes
4answers
16k views

How do I write an application install shell script?

Does anyone know how to write a shell script to install a list of applications? It's a pain to have to install each application by hand every time I set up a new system. Edit: It still asks me Do ...
13
votes
2answers
2k views

Why do I need root privileges to umount a drive at the command line, but not in nautilus? How to change?

When I insert a thumb drive, media card, or USB hard drive, to unmount it via the command line, I need to use sudo umount /media/the_device But, I can unmount the device in a file manager like ...
1
vote
1answer
2k views

How to burn a dual layer dvd iso from the command line

How do you burn a DVD-DL iso from the command line?
117
votes
5answers
16k views

How can I tell, from the command line, whether the machine requires a reboot?

When you install certain updates (e.g. a new kernel) in Ubuntu Desktop, you get an indication that a reboot is required (in Lucid, the logout icon turns red). How can I check, from the command line, ...
18
votes
3answers
5k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
70
votes
5answers
57k views

How do I enable full-color support in Vim?

I have a lovely Vim colorscheme (xoria256) and it looks brilliant in GVim, but when I use normal vim in Terminal, the colorscheme is only partially supported -- for example, the default ...