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

learn more… | top users | synonyms (5)

7
votes
3answers
2k views

How to delete all files that are returned by locate

At the moment his is what I do: Step 1: locate fooBar /home/abc/fooBar /home/abc/Music/fooBar Step 2: Manually perform a removal, by copy-pasting each line. rm /home/abc/fooBar rm ...
1
vote
5answers
6k views

Pasting Clipboard Contents into Terminal [duplicate]

Possible Duplicate: Can not paste into terminal How can I paste clipboard contents into terminal without having to right click then press the "Paste" menu item? Ctrl-V doesn't work here!
1
vote
2answers
3k views

Volume control command

Is there a way to control volume of a remote system via ssh? we have a media center server and we want to remotely control the volume.
0
votes
0answers
275 views

I can't open program from remote computer, why? [duplicate]

Possible Duplicate: How to open a remote python program from terminal by ssh? When I open a program from my local account using terminal, it works. For example, I type "firefox"...firefox ...
1
vote
6answers
2k views

How to open a remote python program from terminal by ssh?

I type ssh -X name@blah.edu and asks for a password, I type it in and get logged in. name@blah.edu:~$ program.py then nothing happens, when it should actually pop up. Why is this happening and ...
2
votes
1answer
1k views

Can I use ping to see real time drop rates?

I'm pinging a server which is dropping packets. At the end of my ping I see something like: 100 packets transmitted, 85 received, 15% packet loss, time 100030ms What I'd like to do is run my ping ...
8
votes
1answer
1k views

What are “select-by-word” characters?

What are the "select-by-word" in gnome-terminal's preferences?
12
votes
5answers
13k views

trim the terminal command prompt working directory

When using the terminal in a deep folder structure sometimes the prompt can take up most of the line. Is there any way in which I can trim the working directory? I know I can do PS1="\W >" to only ...
16
votes
0answers
529 views

Why do I need ./ to run an application? [duplicate]

I wrote a little Hello world program. When I tried to run a.out, I got "command not found". When I ran ./a.out, it worked fine. Where can I learn about why that was?
11
votes
5answers
14k views

Where does Ubuntu store its library files?

I want to add my own library to use in c compiling, but don't really know where ubuntu stores it.
6
votes
5answers
1k views

way to detect which workspace you are currently in from the command line

I'm trying to figure out how to get the workspace number from a terminal script in gnome. Any ideas?
113
votes
4answers
127k views

What do the different colors mean in the terminal?

What does the different colours in Ubuntu mean? For example, when I type 'ls' in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green high ...
94
votes
10answers
102k views

Progress and speed with 'cp'?

When copying files using cp, is it possible to display the progress and speed of the transfer? Otherwise, is there any alternative command line utility that can achieve this?
7
votes
3answers
5k views

How to pause/resume transfer of large files?

I recently had to copy about 20 GB of data split between about 20 files from my laptop to an external hard drive. Since this operation takes quite a while (at ~560kb/s), I was wondering if there was ...
6
votes
4answers
6k views

How to send SFTP file download to background?

Is it possible to: execute sftp command on remote machine and download a file (ssh user@machine, sftp user2@server, get file) then, send download to background, so I can turn my local computer off
17
votes
3answers
3k views

Gnome Terminal tabs ugly and oversized

Both gnome terminal and terminator (which I am using on my laptop these days) can be customised to look very pretty. By using full screen and keeping desktop clutter down to a minimum it's possible to ...
14
votes
4answers
57k views

How to open a directory/folder and a URL through Terminal

I can navigate my files quite fast through terminal. Faster than double clicking... open... look, double click... etc. How do I open a directory in the Ubuntu GUI? For example: cd projects {some ...
25
votes
6answers
6k views

What causes Nautilus to restart whenever I kill it?

In htop, I kill Nautilus, and within one second, it's back, with a new PID! The restarted Nautilus shows in the Processes list, but has no GUI until I manually launch Nautilus... I've heard ...
12
votes
4answers
8k views

Ncurses prompts look broken in PuTTY from Windows

Byobu looks very broken in PuTTY. I've already fixed the key mapping issue, but this issue isn't specified in the man page or even Google: Notice the misplaced position of the list of windows, the ...
8
votes
3answers
16k views

I can't find .bash_profile

I am trying to learn how to tweak my shell in the file but can't seems to find the file in my home directory or in /etc/profile. Is there any other file I need to search for, or am I expected to ...
13
votes
5answers
35k views

How to switch the editor in mc (midnight commander) from nano to mcedit?

Using ubuntu 10.10 the editor in mc (midnight commander) is nano. How can i switch to the internal mc editor (mcedit)?
8
votes
10answers
984 views

I want to use my old PIII to learn basic linux stuff, should I use ubuntu?

Hey, everyone, I'm using Macs for years,and since I'm fascinated by the terminal and command line, I try to learn the basic linux stuff, so I don't care about gaming or web browsers,the only thing I ...
11
votes
4answers
4k views

How to set the Default Browser from the Command Line?

Tried to set the default browser using the GUI tools but this didn't work overall. Is there a way to configure the system wide default browser from command line?
8
votes
4answers
2k views

Is there a command-line tool which returns the colour of the pixel based on screen co-ordinates?

Is there a command-line tool returns the colour value of a pixel, based solely on its screen co-ordinates. Is there such a tool? (Also: The tool should not require any user action. It is to run in ...
3
votes
2answers
16k views

How to access serial ubuntu host serial port on VirtualBox guest OS

I am having a difficult time trying to access a serial port on VirtualBox. My Guest OS is Windows XP and the host environment is Linux Ubuntu 10.04. The serial modem device works perfectly in Ubuntu. ...
47
votes
4answers
101k views

How to connect and disconnect to a network manually in terminal?

Since the network manager is troubling me so much I want to replace it (possibly wicd orNM from ppa:volanin). I do not know how to connect and disconnect to the network through the terminal without ...
2
votes
2answers
2k views

Connect to network before user login

As a learning experiment, I'm trying to turn Ubuntu Desktop into a server. I was able to disable X at boot time and now, I am trying to get my computer to connect to my WiFi network at boot time, ...
18
votes
3answers
17k views

How to get coloured terminal over ssh?

When I connect over ssh to remote hosts everything is just a single font/color. I would like to have colours like I do locally e.g. green for executable and blue for symlinks etc. And such that when I ...
12
votes
2answers
1k views

Control compiz zoom from the command line

I'm downstairs on my phone trying to VNC into my desktop upstairs but earlier today, I zoomed in with compiz on one of my screens so it makes using that screen over VNC almost impossible. Now I could ...
6
votes
2answers
2k views

Execute Bash script at startup, but only once a day?

I have a bash script that should be executed on ubuntu startup after boot. The problem is the script should be only executed once a day. So when the script recognizes that it already has been ...
7
votes
4answers
9k views

Overwrite previous output in Bash instead of appending it

For a bash timer i use this code: #!/bin/bash sek=60 echo "60 Seconds Wait!" echo -n "One Moment please " while [ $sek -ge 1 ] do echo -n "$sek " sleep 1 sek=$[$sek-1] done echo echo "ready!" ...
22
votes
6answers
8k views

How can I create an alias for cd and ls?

I frequently run the ls command after running the cd command. How can I create an alias (like cs) for this operation?
36
votes
5answers
45k views

Browse internet inside terminal

Is there any other package other than elinks so that I browse internet inside the terminal using terminal as a browser. I feel elinks is a bit difficult to operate.
121
votes
12answers
235k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
3
votes
1answer
404 views

Off-line Repository and software removal

I read up on the process here and came up with this script: for i in `ls -1 /var/cache/apt/archives` ; do sudo cp /var/cache/apt/archives/$i /home/jj/Documents/Repository ; done and to re-install: ...
7
votes
9answers
11k views

How to shut down the computer after a task has been completed?

I usually start a download before I go to school. Which command should I use to automatically make the necessary saves and turn off the computer after a particular task has been completed? (Say, ...
31
votes
4answers
24k views

How can I find the version number of an installed package via dpkg?

I use the dpkg -l command to find out what version of a package I have installed. For example: dpkg -l network-manager returns the information on the package: ...
6
votes
2answers
6k views

Why is my terminal freezing up?

Sometimes when my terminal freezes up and it will not let me type. I can not identify any causes, nor how to diagnose. Any suggestions? Thanks! GNOME Terminal 2.30.2 on Ubuntu 10.04
10
votes
2answers
2k views

Reboot without sudoer privileges?

I've been trying to get my ubuntu restart without having to edit the sudoers. This has been possible before (in lucid I think) using a dbus command: dbus-send –system –print-reply ...
42
votes
2answers
21k views

How to open file with default application from command line?

In Nautilus, when you double click a file, it will open it with the default application associated with the file's extension. For instance, .html files will open in a web browser and .pdf will be ...
3
votes
1answer
1k views

How to find out what device a file or folder is on?

Is it possible to query (using the command line) what device a particular file or folder is on? All files are on some sort of storage device (eg. /dev/sda1). These storage devices are mounted at a ...
6
votes
3answers
1k views

Command to quit[cleanly] GUI applications from a tty?

While running alpha/beta Ubuntu, I have often had problems where X freezes and I would have to restart X. During this freeze, I'm able to switch to a tty and shutdown the programs. I either use top ...
6
votes
1answer
420 views

Why is $PATH different in the Nautilus-Elementary embedded terminal?

I'm running Ubuntu 10.10 with Nautilus-Elementary installed. When I open the embedded terminal in Nautilus (F7) and run echo $PATH, I get: /usr/bin:/bin:./usr/local/bin:/bin When run the same ...
5
votes
3answers
4k views

Right click to open a terminal in Kubuntu?

On work, I am using fedora, where a right click on desktop opens a menu, which allows opening a terminal. Home, I have kubuntu installed. Is it possible to have the same behavior?
18
votes
6answers
34k views

What terminal-based network speed tests are available?

I'm looking to find a way to test my internet speed at home through ssh. Does anyone know a terminal app that can give me calculations similar info to speedtest.net? It would also be really cool ...
8
votes
2answers
731 views

Mistaken dist-upgrade, is this bad?

I was looking for Update Manager on Ubuntu 10.10 Netbook Edition and couldn't find it, so in Terminal I did: sudo apt-get update sudo apt-get upgrade I got a message saying some packages were "held ...
19
votes
5answers
989 views

What are shells?

What's a shell, their importance, types and functions?
2
votes
2answers
1k views

How does the command for installing RVM work?

A newbie question.. I was installing RVM (a tool to manage Ruby versions). The command for it is: bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) I know a little bit ...
1
vote
1answer
97 views

Enable external HD after remote reboot

Ran into this one tonight: Was on my laptop, and ssh'd into my desktop to access files on my desktop's external HD. So far, so good. However, after remotely rebooting the desktop, the external HD ...
8
votes
4answers
5k views

Is it possible to get tab completion with sftp?

Sometimes I need to quickly copy a file from my remote server to my local machine. Here's my current workflow: I SSH into my remote server, find the file and copy its full path. I open new terminal ...