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

learn more… | top users | synonyms (5)

6
votes
3answers
7k views

Warnings while launching gedit from the Ubuntu terminal

I am facing these warnings while launching gedit from my terminal. Eventually gedit starts, but with these lines of warning every time when I launch gedit: (gedit:3830): Gtk-WARNING **: Theme parsing ...
23
votes
3answers
8k views

Difference between 'dir' and 'ls' terminal commands?

I've been trying to find the difference between using the dir and ls commands in terminal. I know ls is the traditional unix method of viewing the files in a directory, and that dir is the windows ...
11
votes
2answers
19k views

How do I switch from LightDM to GDM?

How do I switch from the default display manager (Lightdm) to the older display manager (GDM)?
9
votes
1answer
4k views

What commands are needed to install Ubuntu Core?

Ubuntu Core's wiki page page contains the instructions to install Ubuntu Core on a target media: Uncompress (do not unpack) rootfs Format target media: at least one partition should be ext2, ...
8
votes
4answers
10k views

How do you change brightness, color and sharpness from command line?

I am controlling my PC with SSH and scripting. How can i change the brightness, color and sharpness from command line? Try 1: failed $ sudo redshift -t 5000:5000 -g .5 Cannot list GNOME panel ...
7
votes
3answers
6k views

Executing .bat file

I have a setup.bat file which install some applications and i want to execute it. This is content of .bat file : @echo off cls Rip_7z.exe x Rip0.7z cls del Rip0.7z cls Rip_7z.exe x Rip1.7z cls del ...
6
votes
5answers
32k views

Can't execute .out files, getting permission denied

I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use ...
4
votes
5answers
3k views

What is a full path name?

I would like to understand what full path name really means. I have a file in my home directory called my_script. I assumed the full path name is ./my_script, meaning that it is in the root folder, ...
4
votes
1answer
4k views

How do I recreate a deleted '/var/lib/dpkg' directory?

Yesterday I had some problem with /var/lib/dpkg/lock during update. I knew that in such cases removing lock file could solve problem. So I tried to do it, but by mistake I removed all DPKG directory. ...
3
votes
1answer
6k views

Why does switching to the tty give me a blank screen?

After booting to the GUI in 12.04, I attempt to move to the virtual terminal (or shell, or tty) via Ctrl-Alt-F1 (F1 - 6), and the screen remains blank. I'm tried all 6 tty instances and the results ...
2
votes
1answer
484 views

Adding a Wine (.exe) file to open/play files in Thunar's 'Custom Actions'

What is the line parameter in Thunar's "custom actions" that would play a music directory in a Wine (.exe) program? I want to put Foobar2000 (and possibly other such applications) in Thunar's Custom ...
2
votes
1answer
5k views

Run simple bash script to start applications at login

I want to run a simple bash script automatically when I log in. For example #!/bin/bash echo "start spotify" gnome-terminal -e spotify --title spotify When I run this command, one gnome-terminal ...
3
votes
1answer
879 views

Why is pkexec preferred over gksudo for graphical applications?

Please provide Ubuntu documentation that refutes this: https://help.ubuntu.com/community/RootSudo Why, on my fully updated 13.04 system, does pkexec not function? $ pkexec gedit somefile.txt No ...
3
votes
2answers
3k views

How to install a program ending in “.run” using terminal [duplicate]

I am following How to Install AMD ATI Radeon Graphics HD 6770M on Ubuntu 13.04 64bit but at step no 5. i don't know how to do it 5 - Install Catalyst driver, type the following commands on terminal: ...
3
votes
3answers
1k views

Joining MP3 files losslessly

I have a bunch of MP3 files and I have their paths grouped in a text file. Is it possible to join the relevant MP3 files based on the paths in the text file?
1
vote
1answer
564 views

Why is my terminal invisible after minimizing it and how can I find it?

I minimized my terminal after doing a repo sync. I cant find it on any desktop now! Please help.
123
votes
4answers
109k 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 ...
40
votes
8answers
35k views

Torrent client for the command-line?

Yesterday one of my friends asked me, if there is some torrent client, that runs on the command-line. I have no answer for him, but I think that you have it.
66
votes
9answers
6k views

Run same command again but as sudo

Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission. Is there a way to run the same command again but as a super user?
26
votes
13answers
1k 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 ...
31
votes
6answers
43k views

What's a command line way to find large files/directories to remove and free up space?

Looking for a series of commands that will show me the largest files on a drive.
18
votes
3answers
4k views

How to show ascii art at the top of the terminal when it's opened?

As you can see on this screeshot of Mik's Guake he have a statup message of ascii art when he opens it, and that's what I'd like to do, can someone help me?
22
votes
3answers
8k views

Which one is better: using ; or && to execute multiple commands in one line?

In tutorials and how-to's I often see commands combined. For instance, sudo apt-get update && sudo apt-get install pyrenamer There seem to be four possible connectors: &, &&, || ...
16
votes
4answers
7k views

Can files/directories deleted from terminal be restored?

Is it possible to restore files/directories which are deleted from terminal using rm and rm -r?. If a file is deleted from graphical interface, it could be restored from trash, but how do you restore ...
13
votes
6answers
9k views

Backspace, Tab, Del and arrow keys not working in terminal (using ssh)

When I ssh into another Ubuntu machine with my account (with sudo permissions), my backspace key generates some awkward symbols on pressing. Also Tab, Del and Arrow keys don't work. On the other ...
13
votes
7answers
26k views

Can you set passwords in .ssh/config to allow automatic login?

I'm using ubuntu 11.10. I'm using ssh for connecting to many servers daily, so i put their parameters in .ssh/config file; like this : Host Home User netmoon Port 22 HostName test.com Is there a ...
9
votes
2answers
3k views

How to enter the Default Keyring password via the command line?

Is there a way to enter the default keyring password using the command line? For instance: You have a remote setup of Ubuntu 10.10 thats set to auto login. You don't want to remove the keyring ...
21
votes
7answers
42k 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?
16
votes
4answers
5k views

Is the difference between sudo and gksu the same as the difference between sudo -i and sudo -s?

Is the difference between sudo cmd and gksu cmd, the same as the difference between starting a shell with sudo -i and sudo -s? ... or put another way, Is sudo cmd the same as sudo -i cmd and gksu ...
13
votes
2answers
728 views

How to tell what applications are accessing the hard drive and how frequently?

My hard drive is going crazy and I don't know what application is doing it. Are there any linux tools for profiling what processes are accessing drives and how frequently? top, htop and the like ...
5
votes
3answers
14k views

How to enable/disable mobile broadband from terminal?

I use ZTE USB Modem on Natty Narwhal. Every thing works fine but sometimes it get disconnected. I want to write Shell script that reconnects mobile broadband if it is disconnected or the received data ...
5
votes
1answer
5k views

Enable Wi-Fi in Recovery Terminal

How do I enable WiFi from the Ubuntu 11.10 netroot recovery terminal? After just 12 hours with Ubuntu, I managed to destroy my ATI fglrx drivers and now I can't repair them without Internet access.
19
votes
1answer
15k views

What's the difference between ddrescue, gddrescue, and dd_rescue?

The dd command is commonly used to make image backups of a drive or partition. However, it performs poorly if the source drive is unreliable or failing. I read that ddrescue/dd_rescue is a good tool ...
11
votes
4answers
9k views

How do I use wget/curl to download from a site I am logged into?

Some parts of wikipedia appear differently when you're logged in. I would like to wget user pages so they would appear as if I was logged in. Is there a way I can wget user pages like this ...
11
votes
2answers
9k views

Connect to bluetooth device from command line

Background: I'm using my bluetooth headset as audio output. I managed to get it working by the long list of instructions on BluetoothHeadset community documentation, and I have automated the process ...
10
votes
3answers
5k views

Open terminal in nautilus

Is there any stable open terminal plugin for nautilus?
20
votes
4answers
5k views

How can I list all packages I've installed from a particular PPA?

How can I list all packages I've installed from a particular PPA? Command-line answers preferred. Related question: how can I list all installed packages that are not available from the main Ubuntu ...
14
votes
4answers
4k views

File / Application association using a custom command is gone?

In previous Ubuntus when you want to select/change an application to open a specific file (right-click/open with other application or properties) you were able to write a custom command to open the ...
12
votes
1answer
3k views

How do I change the desktop background from command line?

How can I change my desktop background from command line?
10
votes
2answers
4k views

How do I use 'notify-send' to immediately replace an existing notification?

When I use notify-send to show a notification on the desktop, and then use it again to show a different notification, I have noticed that the second one only shows after the first one has disappeared. ...
9
votes
6answers
838 views

Finding out what package a command came from

Is there a generalised way to find out what package caused the installation of a command?
8
votes
2answers
2k views

Mount drive through command line (as if I clicked on it in nautilus)

I'm writing a backup script in which I need to mount a drive in the media bay of my laptop. I know that I can get the job done by messing with fstab and the mount command. Perhaps that's the easiest ...
3
votes
3answers
3k views

Is it possible to check when a folder or a file is created?

I am looking for a way to check when a specific folder and also a specific file were created. Is it possible? My system uses the ext3 file system. Thanks a lot!
17
votes
8answers
32k views

Create USB installer 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 ...
16
votes
2answers
12k views

How do I get Terminator to start up with my custom layout?

Terminator is very powerful at organizing several computers or servers due to the split window and group all function. But here's the deal: I created my own Layout and would appreciate it to load at ...
16
votes
8answers
4k views

Is there a terminal that runs inside a web browser?

I'm at a public place, windows computers galore (library). I'm sshing into my ubuntu server box somewhere else. I open command prompt and remember that I read "you will be banned from using the ...
15
votes
6answers
7k views

Command to see media file info in terminal?

I need a command to quickly see in terminal essential information about an audio or video file. (Then I'll consider adding that to Thunar's custom actions, etc.)
12
votes
5answers
11k 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?
9
votes
3answers
18k views

Disable sudo permission to user from command line

I have activated root user in ubuntu and want to use ubuntu as server with no DE. For this I want to disable sudo privilege given to first user. How can I do this from command line ? I know I can use ...
8
votes
3answers
3k views

Checking laptop's battery state in a terminal [duplicate]

Possible Duplicate: How to check battery status using terminal? I want to find out whether my laptop is plugged in to AC power or not using the command line. How can I do this?