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

learn more… | top users | synonyms (5)

52
votes
13answers
36k views

Running a .desktop file in the terminal

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder. If I open that ...
19
votes
4answers
11k views

Can I minimize a window from the command line?

I would like to be able to choose any already-open window and minimize it from the command line. Is this possible?
5
votes
3answers
630 views

Is possible to make symlinks that 'follow' the file?

Behavior: me@local: tree . |-- ba | `-- file.txt |-- foo | `-- file.txt -> ba/file.txt `-- foobar now, let's say i move the file.txt from ba to foobar: me@local: mv ba/file.txt ...
3
votes
1answer
466 views

What is the command getweb?

I found on this launchpad bug (https://bugs.launchpad.net/ubuntu/+source/foo2zjs/+bug/96454) the command: sudo getweb 1020 I don't know what getweb is, so here is the question.
15
votes
4answers
1k views

Using sudo su for commands?

I was working on developing my command line skills last night and ran into an issue where when I used sudo, I got an error message that said 'permission denied'. However when I used 'sudo su' and ...
7
votes
2answers
221 views

Is there a vocal interface system for Ubuntu (able to map voice commands to console commands and parameters)?

As far as I can remember, on some of even pretty old cellphones it was possible to say a name to be dialled. From this I conclude that it is possible and not very complex to implement. So, do such a ...
24
votes
4answers
40k views

Where to declare environment variables?

What are correct places for: Global environment variables meant to affect all users? User-specific environment variables?
2
votes
4answers
717 views

Download Flock browser in command line

Is Flock browser available in Ubuntu 10.4. If so how do I download in command line. Is it perhaps: sudo apt get Flock browser Not sure, will appreciate some help. Thnxs
6
votes
2answers
2k views

Get a file's emblem from command line?

I'd like to be able to determine what emblem a file has from the command line. Is there a way to determine this? Also, is there a way to apply emblems from the command line? I usually have a cron ...
14
votes
1answer
13k views

How to get the mime type of a file from the command line?

I'm trying to get the mime type of a file from the command line as a printed string (eg. application/vnd.oasis.opendocument.spreadsheet). I looked up how to do this and found the xdg-mime command. ...
42
votes
6answers
46k views

How to change time-zone settings from the command line

I have a virtual machine that is set to PST that a couple of colleagues have in different timezones. If I wanted to change the time-zone to EST and GMT, what do I need to do?
4
votes
4answers
5k views

How to open a nautilus directory and select a file in it from the command line?

I know how to open directory, but I do not know how to select a file from the command line. Edit: I do not know how it works, but when I move any file to a directory and then open the directory that ...
16
votes
5answers
12k views

With a launcher for a terminal application, how can I keep the terminal open after the program is complete?

I have a terminal command I run from an application launcher. This works great, however sometimes the command fails, so I'd like for the terminal to stay open so I can see the results. How can I do ...
6
votes
2answers
2k views

How do I play a midi from the command line in Ubuntu?

I'd like to do something like $ play filename.mid and hear the midi file played without opening up a graphical program. Is there a package for Ubuntu that can do this?
3
votes
5answers
2k views

Extracting meta data from raw images (DSLR camera)

I am searching for a tool, that extracts meta data out of raw images produced by a digital SLR (in my case Canon EOS 550D). The photos can be converted by a recent version of ufraw (here is the PPA ...
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
15k 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
294 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 ...
12
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" ...
162
votes
9answers
164k 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 ...
35
votes
11answers
115k 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 ...
110
votes
10answers
39k 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?
63
votes
6answers
65k 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 ...
240
votes
7answers
213k 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 ...
110
votes
7answers
291k 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
879 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 ...
57
votes
5answers
63k 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
574 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), ...
45
votes
8answers
127k 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 ...
13
votes
4answers
17k 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
3k 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?
118
votes
5answers
17k 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?
72
votes
5answers
59k 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 ...