Questions tagged [command-line]

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

Filter by
Sorted by
Tagged with
8
votes
2answers
2k views

Terminal font is buggy

After my fresh install of Ubuntu 10.10, I noticed that the terminal's font is smashed together and altogether awful-looking. Does anyone have a solution or workaround? I've been trying to find one ...
1
vote
2answers
7k views

How can I setup nightly backups via the command line?

I'm running Ubuntu Server and I'm looking for an efficient way of performing nightly backups of particular directories using cron. However, since the computer isn't always on, I'd like it to just run ...
15
votes
1answer
5k views

What Terminal command will dump all Gconf keys and values? ie the ones seen in gconf-editor

I can output a single key-value, as per the following example: gconftool-2 --get /apps/panel/applets/clock_screen0/object_type bonobo-applet How can I dump the entire gconf database? ... Key-names ...
64
votes
3answers
129k views

Upgrading from the command line? [duplicate]

I would like to know how to upgrade from my current version of Ubuntu to the next stable from the Command line interface?
130
votes
8answers
346k views

How to find out how much disk space is remaining?

What is the command to find out how much disk space is being used/remaining?
25
votes
6answers
72k views

How can I email an attachment from the command line

Is it possible to email attachments from the command line? If possible, I'd like something as simple as: mail -a myfile.txt -t me@example.com -s "Here's my file"
149
votes
20answers
647k views

How to get the GPU info?

I'm looking for a command that would give me the same info as: cat /proc/cpuinfo Except for the GPU (type of the chip and memory, frequency).
24
votes
6answers
31k views

How to start a terminal with certain text already input on the command-line?

Rather than rephrasing my question, let me describe to you the desired user-case: I create a short shell-script to run command "gnome-terminal --someoptionflagname 'my text to be posted'", and ...
10
votes
3answers
918 views

Tab completion for commands

I've noticed on the Desktop version when typing commands like sudo apt-get install mysq I can tab complete like when resolving file paths. However in the server edition this does not happen. Is there ...
3
votes
2answers
5k views

How to detect Bluetooth, without rebooting

I have an external bluetooth adapter, it works if I attach it before booting, but if I connect it afterwards it fails to detect any device. Is there any command to scan for and detect devices?
12
votes
1answer
8k views

How to install tmux from source?

I've download tmux and am trying to install it on Ubuntu 10.04. $ ./configure Configured for Linux $ make cc -DBUILD="\"1.3\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o ...
6
votes
4answers
15k views

How to call a number from command-line with Skype?

I've seen several links suggesting it is possible to make a call from the command-line with skype. The instructions suggest something along the lines of: skype --callto:+14445551234 However, this ...
138
votes
17answers
147k 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 ...
36
votes
6answers
35k 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?
7
votes
3answers
2k 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 foobar/file....
3
votes
1answer
970 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
252 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 ...
59
votes
4answers
105k views

Where to declare environment variables?

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

Add some default text to Ctrl-Alt-F1 console to remind myself how to reboot properly

I do know there are questions and good answers, what to do if Ubuntu just hangs (like this one: What should I do when Ubuntu freezes?). My problem is that such a hang occurs so seldom for me, that I ...
2
votes
4answers
1k 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 ...
51
votes
2answers
52k 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. ...
216
votes
10answers
347k 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 time-zones. If I wanted to change the time-zone to EST and GMT, what do I need to do?
5
votes
4answers
7k 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 ...
24
votes
7answers
30k 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 ...
11
votes
4answers
12k 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?
4
votes
5answers
6k 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
4k 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 ...
12
votes
3answers
26k 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
351 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 ...
4
votes
1answer
2k 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 ...
36
votes
8answers
19k views

Keeping multiple terminal windows in focus

I write code. I use terminal a lot. I ofter use many terminal windows. I hate how tabs look. Are there any applications that allow me to keep multiple terminal windows in focus to streamline my ...
10
votes
3answers
5k 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 ...
8
votes
1answer
5k 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/executable /usr/local/bin/...
4
votes
2answers
2k 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 ...
17
votes
4answers
11k 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?
40
votes
7answers
55k 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 ...
22
votes
3answers
21k 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 ...
22
votes
6answers
24k 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" ...
353
votes
13answers
452k views

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
4
votes
3answers
283 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 ...
126
votes
11answers
428k 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 ...
142
votes
10answers
57k views

Moving from bash to zsh [closed]

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
8k 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
6k 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?
185
votes
6answers
387k 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" ...
123
votes
8answers
43k views

How can I tell what date Ubuntu was installed?

is there a command which will output the date that ubuntu (or any distribution) was installed?
21
votes
4answers
33k 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 "...