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

learn more… | top users | synonyms (6)

5
votes
1answer
3k views

How to find run time of a program from commmand line?

I just ran a program and wish to know how much time it took to execute it. How do I do it?
0
votes
1answer
182 views

Nautilus “open in remote teminal” fails after login

I have installed open-in-erminal package and now I have "Open in Terminal" and "Open in Remote Terminal" in right click menu in Nautilus. First one works perfect, but remote does not. It opens ...
18
votes
3answers
8k views

How to list packages from a ppa/source in command line?

I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that? dpkg --list lists all files or just the filename.
6
votes
7answers
490 views

How to find the command of an installed application?

I have an installed application, but I don't know its name. (By "name" I mean what I would type in a command line.) Is there any way to see this? It seems so obvious, but I can't figure it out.
1
vote
1answer
1k views

Is there a way to shutdown the X display?

I know about startx, but is there a command that stops X? I run Ubuntu 10.04.
7
votes
2answers
7k views

What if I don't have a bashrc?

Will I be able to login? What havoc will it cause, if any? How will it mess up m terminal? There are login and non-login terminals too. How will it affect those?
68
votes
9answers
179k views

How to open a PDF file from terminal?

I used to work on the Mac terminal before and I used: open file2open.pdf and the PDF file would be opened on preview or whatever my default viewer was. When I use it in the terminal in Ubuntu I ...
6
votes
1answer
590 views

GUI for configure -> make -> make install

I found a KDE gui for the configure -> make -> make install routine, kconfigure. But, I did not try it out, since the project was last active in 2005. Is there a gui for the same for Ubuntu. I know ...
9
votes
7answers
28k views

How do I open multiple terminals?

I just downloaded Ubuntu 11.04 and as far as I can remember, there was the option of opening multiple terminals in tabs in Ubuntu. I cannot discover this feature in 11.04. Also, as a general query, ...
2
votes
2answers
227 views

Google Video Command Line Download

Is there a way to download the original (FLV) video files from Google Video from the command line, just like YouTube?
2
votes
1answer
161 views

Displex terminal path issue

I last installed displex from here: http://sourceforge.net/projects/displex/files/ Since then I've been having a small problem with my terminal. Each time I open my terminal while displex is running ...
-3
votes
1answer
3k views

make command not work - Assembler messages [duplicate]

Possible Duplicate: I can't install Thunderbird *whats this message? user1@ubuntu:~$ make KBUILD_NOPEDANTIC=1 make -C /lib/modules/uname -r/build M=pwd make[1]: Entering directory ...
3
votes
1answer
1k views

Is there a way to restore all terminals at startup

I would like to know if there is a way to restore all terminals after a reboot? The following thread refers to 'System > Preferences > Session' http://ubuntuforums.org/showthread.php?t=791504 Which ...
2
votes
3answers
2k views

Cannot use up down to navigate terminal history

In my main ubuntu account I creating on install terminal works as expected, but in an account I created, I cannot use up down keys to navigate history. also I cant seem to use !! to use last command ...
3
votes
3answers
188 views

Assign run command for all media files

Currently Totem/Movie Player opens and plays any type of media files, be it audio or video - is there a way to change that run command? EDIT I am already aware of properties option from ...
3
votes
1answer
1k views

cannot insert backslash with bash, python, works fine with csh, idle

I have a strange problem with inserting backslashes (Ubuntu 10.10 and 11.04, the upgrade changed nothing). The key combination on my keyboard (Swedish Thinkpad T400) is AltGr + ?. However, this seems ...
4
votes
3answers
3k views

How do I search in zips or jars?

I want to search for some file(class) in zips(jars). How to do it from command line?
2
votes
1answer
2k views

How do I set custom keyboard shortcuts in Unity via gconftool? [closed]

I have added few custom keyboard shortcuts via "keyboard shortcuts" app in unity. It used to go gconf file under /apps/metacity/keybinding_commands/ section in Ubuntu 10.10. But, I couldn't find the ...
4
votes
4answers
2k views

Apps launched from shell scripts do not run from Unity bar

I can run Oracle's SQL Developer 3.0 by clicking on "sqldeveloper.sh" from the file manager and then clicking "Run". When I add it to the Unity menu (Right-click running icon in menu, click "Keep in ...
0
votes
2answers
967 views

Shell tweak to show current path in addition

I'm using ubuntu 10.10 and now I got in the shell something like that: machine1user@mylinux:~: how can i change it to machine1user@mylinux:/my/current/path :~: ?
11
votes
4answers
6k views

Is there a command to go a specific workspace?

I'm trying to make a quicklist on the Workspace Switcher launcher that allows for quick switching to a certain workspace. (My friend sometimes uses my computer and just doesn't enjoy keyboard ...
2
votes
2answers
4k views

Maven exits after trying to run it

I've manually installed sun java 1.6.0_24 and apache maven 3.0.3 into ~/Work on Natty and when I run maven from my terminal it exits. I've tried various other versions of maven (2.2.1, 2.0.11), ...
10
votes
7answers
74k views

How do I connect to TTY/COM (/dev/ttyUSB0)?

Just running Ubuntu for the first time by booting to USB drive. Now I have plugged in a USB-to-Serial converter which has been recognized and automatically added as /dev/ttyUSB0
7
votes
2answers
8k views

How can I move all files in subdirectories recursively to a single directory?

I am trying to collect all the files under the current directory and all the subdirectories to one directory. I am trying something like the following find -type f -exec mv {} collection/{} \; ...
0
votes
1answer
174 views

What command runs when I SSH into a server?

When I SSH into a server, I see the MOTD then I am in BASH. What command is running that takes care of displaying the MOTD and then starts the shell?
404
votes
6answers
1.0m views

How do I install a .deb file via the command line?

How do I install a .deb file via the command line?
11
votes
2answers
5k views

How do I get spaces instead of tabs in nano?

I usually edit Python files with nano, so I need four spaces instead of a tab. How can I get nano to automatically insert spaces for tabs, and control how many of them it inserts?
1
vote
1answer
740 views

Make a Launcher for a Privileged Terminal Command

I want to make a Launcher that will do privileged (requires root) commands, but I don't want to see the terminal or have to type my password into the terminal. So I found the command, gksudo that ...
0
votes
1answer
151 views

How do I know the port of email when sending through local mail? [closed]

gmail smtp port is working to send mail .... but if i want to use other than gmail how can i know the port no....pl help Regards, Ramya
4
votes
1answer
3k views

How to use a zenity progress bar with cclive

I tried to use a zenity progress bar with cclive. I'm writting a script to download web videos files and I wanna see the progression of the download. But when I try something like $cclive ...
9
votes
2answers
523 views

Is there any way to initiate “urgent animation” of an icon on the Unity launcher from command line?

It would be great if one could use it in the terminal for announcing that some time intensive job is done, e.g. "apt-get dist-upgrade; urg-anim".
9
votes
1answer
3k views

Why does /bin/sh point to /bin/dash and not /bin/bash?

As far as I understand bash is the default shell in Ubuntu, so why does /bin/sh point to /bin/dash?
1
vote
1answer
802 views

How to prevent monitor from blinking when I press backspace in the terminal?

How to prevent the monitor from blinking when you press backspace when there's no text left to delete in the terminal?
0
votes
1answer
124 views

Prompt takes very long before showing up in new terminal window

When I start my Natty computer and open a terminal, it takes like 20 seconds before the prompt show up. I did not change my .bashrc lately, it appears that this started after the upgrade to 11.04
1
vote
2answers
1k views

Terminal bell without a PC speaker

I do not have an internal speaker in my computer. Usually, I rely on the window manager to play a beep through my soundcard when there's a terminal bell, but since I upgraded, that is not working. ...
1
vote
1answer
1k views

How to open a file in gedit with zenity --file-selection as root

I try to open a file in gedit with the file-selection option of zenity. It's very easy to do it for file that i can access in normal mode, but I wanna open too some configuration files (as for exemple ...
10
votes
2answers
10k views

How do I delete a directory from a zip file using a bash script?

How do I delete a directory from a zip file using a bash script?
6
votes
7answers
5k views

How to use terminal from Krusader?

When I try to run the "Start Terminal Here" command I get Error executing konsole --workdir %d! On the net I found that the reason is that I have konsole is not installed, but I don't have root ...
1
vote
5answers
241 views

Fast LiveCD without xserver to look up mac adresses

I have a bunch of Dell Inspiron netbooks here and I need to find out their mac adresses for lan and wifi. My first idea was to use a ubuntu live usb stick but this needs like 2 minutes for booting. ...
67
votes
6answers
92k views

How do you select the fastest mirror from the command line?

I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple ...
13
votes
3answers
23k views

Terminal Colors Not Working

I am accessing an Ubuntu 10.04.2 LTS server via SSH from OSX. Recently the colors stopped working. I think it happened while I was installing/troubleshooting RVM, but I am not positive. In .bashrc I ...
6
votes
1answer
954 views

Can I “speak IMAP” and review my actual mail quota?

I'm trying to troubleshoot a frustrating inbox quota issue. Thunderbird says my inbox is 80% full. My ISP says it isn't. We made some tweaks and I should have 2G available (it had been "unlimited"). ...
0
votes
2answers
198 views

Start an aliased application from shell passing relative path of a document

I "aliased" a shell command in this way: alias "myapplication"="/home/manuel/myapp/bin/startapp.sh" Now i'd like to pass to it a relative file-path where i am when i execute the aliased command, ...
1
vote
2answers
581 views

How to remove shortcuts from preferences menu from terminal

I want to remove the following shortcuts from the preferences menu from terminal. Main Menu, Remote Desktop & Apperance. Can anyone help ?
0
votes
1answer
201 views

Weird Stuff in Terminal When I Hit Tab

For some reason, today, everytime I hit tab in the terminal this shows up: cat bash: warning: setlocale: LC_CTYPE: cannot change locale (en_CA) Display all 150 possibilities? (y or n) This ...
7
votes
1answer
2k views

What is the command to open a webpage in a new chromium tab?

So I know that if I use chromium-browser --app=http://... That it will open a new Application Shortcut window without the tab bar or navigation bar. I want to know the command that will open a webpage ...
5
votes
2answers
2k views

How do I drop all elevated privileges through the terminal?

I did some authentication mounting where I added code like timestamp_timeout on sudoer. This setting will effect every mounting, where you must enter the user password. After entering the password ...
1
vote
1answer
122 views

Why do (some )apps open in random workspaces when started from command line?

In a gnome-terminal, I started Blender (any app would do, though I didn't many others) followed by an ampersand. Nothing happened! Some minutes later, discovered it had indeed opened, but was in a ...
2
votes
3answers
2k views

How to find out if current shell was loaded by another shell?

When I am in a terminal, and I type /bin/bash, that starts up another bash shell, right? Is it possible to find out, via some command, whether the current bash shell has been started from another ...
52
votes
4answers
100k views

How do I find the version of bash I am running?

(learning bash) I was trying to check the bash version so I typed /bin/bash -v. That outputted a whole lot of text to the screen (contents of .bashrc, and other files sourced from it). Could I have ...