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

learn more… | top users | synonyms (6)

4
votes
2answers
6k views

How to delete specific files from terminal

Recently, I converted my music files to a different format. I have for example a folder of an artist containing the different albums in separate folders. I would knowing if is there a way to delete ...
1
vote
1answer
4k views

Can't enable Ralink RT2561/RT61 wireless card

I have been reading various other posts on the matter but none of the solutions are working so I thought I might as well ask. Just installed Ubuntu Server 11.04 on my old Dell Optiplex 330. It has a ...
1
vote
2answers
728 views

Command line open browser window at size?

Is it possible to open a browser window at a given size/location on screen via a shell script ? I've seen examples of launching Firefox, setting the window size via command line. I've also seen it ...
2
votes
1answer
4k views

Converting images to PPM P3 (using convert command)

I was wondering if there is a quick way to convert a given image to a PPM image that is in version P3. The convert command returns it in P6 by default. Thanks!
0
votes
1answer
130 views

Ubuntu automatically logs in to netbook version, have no options on desktop

I am running Ubuntu 10.4 and tried to install unity, the website i found advised me to install netbook-remix. Every time i boot it automatically logs into the netbook version without asking for a ...
1
vote
1answer
2k views

Terminal Not Opening

what i did is ...in terminal profile i added command sudo su - ...so when terminal open it automatically execute sudo su - command...this was working fine and when i open terminal i loged as root ...
7
votes
5answers
7k views

How to abort a stuck command in ubuntu server?

I know there is ctrl+c, but sometimes that doesn't work. In Ubuntu desktop I can just close the terminal window and open a new one when this happens, but how would this be solved using the CLI in ...
2
votes
4answers
12k views

Using grep, awk, etc. to filter command output

I'll use route as an example. route -n The above outputs routing information. The top row is your active connection. I can manipulate the output to only the second column by doing: route -n | awk ...
1
vote
0answers
1k views

How can i use Ncmpcpp? [closed]

I was wondering how to use this software.Its called Ncmpcpp.Can anyone tell me how to use this software.I can use mocp & cmus both, but i can't figured out how to use this.If someone can upload a ...
20
votes
5answers
6k views

Where are shell/terminal settings stored?

i updated my ubuntu but it crashed during installation and i was not able to recover it (my hard drive crashed). i changed my hard drive and re-install ubuntu i saved all my important docs (bookmark, ...
3
votes
2answers
7k views

How Can I Upgrade to 11.10 from the Command Line?

I am trying to upgrade my 11.04 Ubuntu operating system to 11.10, as the current system is not the most recent. However, I cannot use the GUI to upgrade - as from past experience I have learned this ...
2
votes
0answers
244 views

Getting to virtual terminal with Keytouch overriding Fn keys [closed]

I have a Chromebook running Ubuntu that I just broke. I had everything on the internal harddrive for the computer, but ran out of space, so I decided to move my home partition onto a memory card that ...
0
votes
0answers
131 views

GtK error upon creating a project with Quickly [duplicate]

Possible Duplicate: Gdk Gtk warnings and errors from the command line I'm very new to Linux (having come from OS X) but am keen to start writing some GUI desktop apps for Ubuntu. I have ...
0
votes
2answers
142 views

How can I browse a folder currently open in nautilus in the terminal?

I would like to be able to to this easily, in all of the following ways: Keyboard shortcut Right-click Drag a folder into an open terminal (with a certain mouse button) Drag the title bar into an ...
7
votes
3answers
12k views

How to setup Wifi using the command-line?

How do I setup Wifi using the command line? I need to setup as following, but its failed: Target: Security: WEP Network name: wifi59/7 Key/password: xyz Tried and failed: sudo iwconfig wlan0 ...
2
votes
2answers
722 views

Configuring bind9 views so I can have DNS services?

I want to configure bind9 using the Ubuntu terminal to have the DNS resolve a local name, not a domain name. For example, if I type in Nicole it will resolve my IP address in a local network fashion. ...
2
votes
2answers
3k views

How can I find from console what version of ubuntu I'm using [duplicate]

Possible Duplicate: How can I find the version of Ubuntu that is installed? There should be some easy command to find from console what version of ubuntu I'm using.
7
votes
1answer
2k views

How to make a directory with permanent permissions different from default

I have system-wide default permissions set with umask 027. I am in the need to make a directory whose sub-directories would need 775 permission and whose files would need 664 permissions and make ...
5
votes
1answer
944 views

Thinkpad fingerprint scan only at login

I know how to set up the fingerprint reader for my Thinkpad X220 in Ubuntu 11.10. My question is: Is it possible to only use the fingerprint reader at the LightDM-Login and not when typing "sudo ..." ...
7
votes
3answers
9k views

How to play music in terminal?

I want a command line to play a specific music file in terminal (or script) from my hard-disk. It would be better to do it without installing extra packages.
3
votes
3answers
430 views

Install updates without breaking shell theme?

Recently I installed a copy of Oneiric Ocelot 11.10 on my ThinkPad. Everything went fine, I installed the gnome shell and gnome-tweak-tool to customize everything. I changed the shell theme, the GTK+ ...
6
votes
1answer
1k views

How to move files leaving symlinks behind?

How can I move/copy files from one directory to another, leaving the symlinks in the original directory. I know the ln -screates symlinks in the destination, but I want to leave the symlinks in the ...
1
vote
2answers
412 views

Commandline email to internal web mail server

I have a few number of ubuntu pcs, whom I want to mail me some kind of log on daily basis. The problem is that these pcs have access only to the internal webmail (of my campus) and all I can find on ...
4
votes
1answer
5k views

How can I read system mail on my admin account?

On a new server running lucid, I get "you have new mail" in my admin account. However, I don't have a mail command available to read it. Do I need to install it manually (or mutt, etc.), or is a mail ...
0
votes
1answer
882 views

Upgrading from 9.04 to 11.10, unmet dependancies

So I have been trying to read around about how to upgrade from the terminal. I am actually SSHing through putty to do all this. Anyways.. I first tried sudo apt-get update but since Jaunty is expired ...
2
votes
1answer
386 views

How to prevent terminal from killing process with ctrl+z

I know that you can restore the process by hitting fg and enter after you stop a job with ctrl+z, but I don't think I've ever intended to stop a job.. ever. e.g. I always bump it when typing ctrl+x in ...
1
vote
1answer
446 views

How do I get package update notifications on login?

In Ubuntu 11.04 Server when I would log in via ssh it would tell me how many packages are available for updating in the welcome message. After upgrading to 11.10 I no longer get that information. Is ...
1
vote
1answer
254 views

How to install an app via Ubuntu Software Center AND visualize those commands in terminal?

I just dipped my toes into Linux, and as obvious as it should be, I am starting with Ubuntu as it makes life easier for starters. I believe, the best way to get a grip over command line is to use it ...
5
votes
1answer
13k views

How to rebuild fstab automatically

I accidentally removed all the entries from the fstab files while doing a backup (Yeah, I know ;)). I would like to know if there is a way to rebuild it with the current mount options, since I did ...
3
votes
2answers
1k views

Can I play movies without X launched?

I know that I dont need a GUI for browsing Internet (using Links) but what about doing other things like playing movies, music and pictures slide shows. Is it possible to do that in a text mode ...
2
votes
3answers
507 views

Terminal line glitches

I installed Ubuntu 11.10 mini + LXDE and wanted to make my command line different in terminal (than just plain white), so I added blue color to path line (everything until $ sign) and it works fine ...
3
votes
1answer
7k views

Terminal problems entering password

Every time I try to enable shell theme extension or anything in general in Terminal it asks me for a password but won't accept it.
4
votes
1answer
347 views

How to open Unity's Alt+F2 dialog when hitting top-right corner?

I want to open the Alt+F2 run dialog when I hit the top-right corner like in this answer, but I need another command to do it (I have already installed xdotool and xmacro).
3
votes
1answer
816 views

How to configure Nautilus to open a terminal

Let us say I am viewing the /media/fun/videos/chucknorris folder in Nautilus. How can I configure Nautilus so by pressing a Key it opens a terminal and this terminal defaults opened directory is the ...
23
votes
8answers
29k views

How does one find out the command line corresponding to GUI app (eg, LibreOffice Writer)?

How can I run LibreOffice Writer from the command line? Basically, what is its command and how do I get to know what's the command to run a particular application in general?
2
votes
1answer
124 views

Is it possible to open applications in a terminal and have them load on a particular workspace?

Is it possible to open applications in a terminal and have them load on particular workspace? To be clear, what I mean is as follows: Let's say I would like to open up banshee, I run the banshee ...
0
votes
1answer
991 views

How to sort files by file extensions through the command line?

This is my question: How to sort files by file extensions through the command line?
2
votes
1answer
1k views

$TERM set to “dumb” causes problems with suspend

I've just upgraded from 11.04 to 11.10. So far I love it, everything seems just so much snappier. Now I just have one minor issue. When I try to suspend my laptop, it doesn't work - instead it fades ...
30
votes
3answers
21k views

Bash history handling with multiple terminals

I use mainly Terminator, and it's usually opened with 3 split terminal windows. I also use Gnome terminal for various reasons. I'm wondering how is bash history handled in this case as I sometimes ...
32
votes
2answers
10k views

How do I turn off Caps Lock (the lock, not the key) by command line?

For some reason my laptop is stuck in Caps Lock. I have the Caps Lock key mapped by xmodmap to hyper_l, so I don't have a caps_lock key to turn it off. Is there a way I can turn it off by command ...
1
vote
1answer
394 views

Command line podcatcher with per-podcast automatic/nonautomatic download

Is there a command line podcatcher that lets me configure some podcasts to be downloaded automatically and asks before downloading if other podcasts where updated depending on the configuration for ...
3
votes
3answers
18k views

Process ID using ps aux

I'm a newbie to shell programming. Assuming that I've started a program(eg NetBeans) from my terminal, if I type ps aux|grep netbeans I get the the output pre 18775 1.2 0.0 12524 1972 ...
4
votes
4answers
3k views

Terminal Emulator with different background color per instance

I often have to keep multiple ssh sessions open in different terminal windows at the same time and I'd like to have a differen background color to help me visualize to which host I'm connected to: ...
2
votes
3answers
1k views

how I can install a package. deb without internet connection in the terminal?

I have no internet connection and I can install the packages. Deb that I downloaded from internet that are older versions but I can not install anything and not as the terminal
0
votes
1answer
719 views

What's the difference between cat /etc/group and cat /etc/group- [duplicate]

Possible Duplicate: What's the difference between the “group” and “group-” file? I just changed a group name and noticed that cat /etc/group Includes the ...
32
votes
2answers
175k views

I want to copy a directory from one place to another via the command line

I want to copy a directory from one place to another folder. sudo cp is the command, but after that what should I type? The destination or source first?
3
votes
2answers
565 views

How to specifiy prompt location in terminal?

I am using GNOME 3.2 and my problem is that while working on terminal my prompt is usually at the bottom of screen. As GNOME notifications keep popping up on new mail, chat or song change, it becomes ...
0
votes
1answer
201 views

Administrator user session only shows a terminal

Weird problem: After upgrading to 11.10 (and I am sure that I worked with it for couple of days). We had a power failure, and now, when open the computer, what I get is a screen, with a scrollable ...
5
votes
1answer
6k views

How can I run emacs in gnome terminal without popup interface?

Just like using emacs on putty. I just transfered to Ubuntu from windows. I also got error message when I tried to open a matlab .m file using emacs. Code: emacs job.m 701 $ emacs job.m Warning: ...
3
votes
1answer
571 views

Ubuntu server terminal?

I installed ubuntu server on my windows 7 computer and can't reboot windows 7. I want know if I accidently formatted my hard drive or if I accidently replaced my OS. How do I download ubuntu from the ...