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

learn more… | top users | synonyms (6)

3
votes
5answers
29k views

Why is the “apt” command not found?

sudo: apt :command not found What does this error mean? The apt command is not working, and I've lost the Software Center.
5
votes
0answers
744 views

Is it possible for an application (written in Mono C#) to run a console command? [closed]

I am wondering if a Mono C# application running in Ubuntu can somehow run a terminal command. For example, could the user give the program his or her password and then have the application run sudo ...
3
votes
3answers
17k views

which command is linux's netview?

In windows, I can use netview to see all the computers on the LAN network, but what's the corresponding command on linux?
2
votes
1answer
491 views

Why does running `time` and `/usr/bin/time` give different results?

Why does running time and /usr/bin/time give different results? /usr/bin/time thomas@tbdesktop:~$ /usr/bin/time -f "Elapsed time:%E" wc /etc/hosts 9 25 224 /etc/hosts Elapsed time:0:00.04 time ...
2
votes
2answers
1k views

How can I create a startup script that starts various Rails-required programs?

When I start my Ubuntu 12.04 vmware VM, I open up terminal and run the following commands. sudo /etc/init.d/postgresql start sudo /etc/init.d/apache2 start cd sites/name_of_rails_app bundle exec ...
66
votes
6answers
54k views

What is the terminal command to take a screenshot?

What command(s) can I use in the terminal that's equivalent to the PrtSc (Print Screen) button? I am running Ubuntu GNOME.
19
votes
3answers
22k views

youtube-dl is not working

I am using youtube-dl to download some videos from youtube. But when I write: youtube-dl http://www.youtube.com/watch?v=rn_YodiJO6k I get: [youtube] Setting language [youtube] rn_YodiJO6k: ...
9
votes
4answers
1k views

How to find out who is using the physical console?

I would like to use a script to find out the username - of the user who is currently on the physical console (who has command of the keyboard, mouse and graphical display)? I do not just want to ...
1
vote
2answers
1k views

How to start a graphical utility from command line

In my machine I have installed Ubuntu 12.04 and I have installed putty. I want to start putty from command line. When I run the program from command line and after closing the terminal, putty also ...
6
votes
2answers
7k views

How to send terminal command to a TTY terminal

I am looking for a way to send an executed command to a TTY terminal. For example, let us say that I open the gnome-terminal and on the window I type sudo aptitude update && sudo aptitude ...
1
vote
0answers
56 views

How to get Gnome shell 3.6 in Ubuntu 12.04? [duplicate]

Possible Duplicate: How do I install and use the latest version of GNOME Shell? simple as install gnome shell 3.6 on Ubuntu 12.04? Some PPA?
5
votes
2answers
4k views

History | grep “keyword2find” does not gives unlimited history

The command history | grep "keyword2find" does not gives unlimited history that i typed in the terminal onwards i installed ubuntu. I want to see all of them without a time span.
1
vote
1answer
3k views

How do I add the “user and groups” application? [duplicate]

Possible Duplicate: How to manage users and groups? I once installed this (gnome thing?) wich gave me an easy access to users groups and advanced settings. But now after reinstalling ubuntu ...
3
votes
2answers
599 views

reduce mp3 size from terminal ? [duplicate]

Possible Duplicate: How can I compress an mp3 file? Hi is there any way to reduce the size of MP3 file from terminal ? I am Using Ubuntu 12.04 .I would like to have it only terminal methods ...
1
vote
1answer
588 views

Script to recursively grep data from certain files in the directory

I am making a simple shell script which will minimize the time I spend in searching all directories under a parent directory and grep some things inside some files. Here's my script. #!/bin/sh ...
2
votes
0answers
189 views

How do I force the system to look for new sound devices? [closed]

I have a small flat screen TV (Toshiba) that I often connect via HDMI to my laptop (an HP Pavilion dv4) and use as a computer monitor. When I do this, I prefer to use the TV's speakers, particularly ...
22
votes
6answers
29k views

How to listen radio from terminal?

I am using Ubuntu 12.04. While seeing around here i have gone through this But it didnt seems to be work with me . Here is my trail . raja@badfox:~$ mplayer www.live365.com MPlayer svn r34540 ...
0
votes
2answers
820 views

Accents - Nano editor

i am using NANO as my everyday text editor. I'm using an old laptop, so NANO it's fast, lightweight, and saves me battery. The only problem is the fact i can't use Special Characters and accents. For ...
1
vote
2answers
276 views

Graphical corruption of characters in File Manager or Terminal

I'm using Ubuntu 12.04 LTS with graphic driver Intel® 945G x86/MMX/SSE2. Sometimes (I think after using hibernation - not restarting system) I'm getting graphical issue with characters in File Manager ...
12
votes
3answers
2k views

Is there a way to store the current desktop layout?

What I want to be able to save the current positions of my applications, so when I'm going to open the same ones and run something they will rearrange as they were. For example if I'm going to open a ...
9
votes
1answer
9k views

Link to directory in bash

I'm using the ln command to create a symbolic link to a directory using bash, I went to the directory I wanted to make a link and used the following command: ln -s C#/ ~/Projetos This would create ...
8
votes
4answers
42k views

How to get the hostname using terminal command-line?

I have used arp-scan in terminal to get the ipaddress as well as mac address, is there anyway i can get to know the hostname of the ipaddress that are there in the terminal? for example there are A-pc ...
7
votes
3answers
16k views

Reading the output from any process using it's pid

Is it possible to attach a terminal to an already runing process by using it's pid in a similar fashion to using the fg command for jobs.
1
vote
2answers
119 views

Hardware buttons problem. The panel with hardware buttons is missing

I have problem with hardware buttons. I have MSI vr630x, but my panel with buttons for WiFi, camera and bluetooth are missing (it has been removed at all). Is there a way to turn devices on? I have ...
5
votes
2answers
544 views

How To Disable Sticky Edges via Command Line?

I know how to disable Sticky Edges via the Settings->Display UI, however, I want to be able to do it via command line or config file. Does anyone know how to disable "sticky edges" via a command or ...
2
votes
0answers
2k views

What to do when gnome-shell freezes? [duplicate]

Possible Duplicate: What should I do when Ubuntu freezes? Mouse can still move but no clicks are registered and everything is locked up Everything works correctly (music is still playing ...
1
vote
2answers
2k views

Problem with `sudo halt` command [duplicate]

Possible Duplicate: Difference between “halt” and “shutdown now”? When you execute a command ( sudo halt ) Command System stops working So you execute this command ...
6
votes
2answers
2k views

Grep through subdirectories

Add a string to a text file from terminal I've been looking at this thread. The solution (number 2, with ls grep) works perfectly for files called .txt in the current directory. How about if I wanted ...
4
votes
3answers
39k views

Airmon-ng command not found

In the terminal I get Command not found when I type: airmon-ng start wlan0 What can I do to access the airmon-ng command?
4
votes
1answer
437 views

Access local ftp

I was using ubuntu 10.10. I had a strange situation where I was setting up a small network all with fixed IPs. I had a NAS drive that I had enabled ftp on. when I used the connect to server menu ...
8
votes
2answers
20k views

What's the command to open the Unity Dash?

I would like to know the command (from the Terminal) which opens the Unity dash, the reason being I want to create a desktop icon that starts the dash instead of the 'Windows Key' for keyboard-free ...
2
votes
0answers
466 views

Why did this command make my Ubuntu more awesome than before? [closed]

After running Ubuntu for months and liking it, I for the first time wanted to use headphones and was trying to get them to work so I ran the code in step 1 ...
6
votes
1answer
2k views

How do I log into bash shell only?

On my home desktop I want to use Ubuntu Unity sometimes and just the bash shell (without any GUI) other times. Is it possible to set up a login option where I can choose between using the Unity GUI ...
1
vote
1answer
4k views

How to change wlan0's channel

When setting the channel to wlan0, I get an error: SET failed on device wlan0 ; Device or resource busy. I tried to shutdown wlan0 by: sudo ifconfig wlan0 down and wlan0 did not appear in the ...
5
votes
2answers
9k views

System monitor in console mode

Is there a way to start system monitor app, from the console ?? I am not talking about terminal. I am talking about Ctrl + Alt + F1 mode
10
votes
2answers
1k views

What does the l command do?

There is a command l available on my machine which appears to do nothing. which l also produces no output. Is this a real command, and does it actually do anything?
7
votes
4answers
9k views

How to run a program as a service (silent)?

I have a python based server which i start from the terminal. This particular instance of the terminal then gives control to the program, and the program uses it as a kind of logging window, until its ...
0
votes
2answers
2k views

how can I shutdown from the command line using lightdm? [duplicate]

Possible Duplicate: How do I restart /shutdown from a terminal? In gdm I could use os.system("gdm-control --reboot && openbox --exit") In a Python script. What would the ...
1
vote
0answers
32 views

Cannot use apt-get with the parameter --configure [duplicate]

Possible Duplicate: Every attempts of installation returns error code (1) $ sudo apt-get purge capiutils drdsl Reading package lists... Done Building dependency tree Reading state ...
35
votes
5answers
14k views

Is there an offline command-line dictionary?

Is there any command line offline dictionary? I know that there are some like StarDict and Artha but how about one in the command line? Also, I tried dict but it is an online dictionary.
3
votes
1answer
753 views

Installing Ubuntu failed, now i have just a command line

Last night I tried to install Ubuntu 12.04 from a USB (for which I had to use Bootice on Windows XP to install PLoP Boot Manager on the MDR, since I was unable to boot from USB and have no CD Rom). It ...
8
votes
3answers
10k views

How to find files between two dates using “find”?

I have an email account that has passed 60GB of emails, and currently I'm having a lot of trouble using an email client to archive emails of last year (2011). Via terminal, I am trying to use find to ...
2
votes
2answers
4k views

How do I connect to my Huawei EG 1732USB modem from terminal?

I'm using Ubuntu 12.04 & i'd like to know how can i connect my USB modem through terminal . I mean creating connection and calling it, I want to do from terminal . Thank you .
13
votes
4answers
876 views

How do I find add-ons for packages when using the command line?

My question is a little bit different from others already asked, I guess. I've already searched for answers, but I didn't find anything related. For example, I've always installed K3B via Terminal ...
8
votes
2answers
893 views

Extract only the contents of an archived directory from within an archive

The Situation I am extracting a CMS from drupal-7.15.tar.gz to /var/www. When extracted normally (with tar -xvzf filename.tar.gz) the files end up in /var/www/drupal-7.15/ The Goal I want the ...
3
votes
1answer
1k views

Is there any way to see data coming from bluetooth?

Is there any way I can see the data being transfered to my PC Bluetooth from my Android device ? Something like a Bluetooth Terminal in Android but in Ubuntu. I am sending Strings and some simple data ...
3
votes
3answers
547 views

Run programs that require a window manager, on the CLI

Is there any way I can run a game server (MW3) under wine without requiring a window manager present? Currently to run windows only game servers on my Ubuntu box, I have to start them using RDP ...
6
votes
1answer
1k views

How to make bash stop tab autocompleting hidden directories

Most of the time, I don't need autocompletes for my hidden directories. In fact, that's the point of them being hidden! However, annoyingly, bash takes these directories into account when ...
6
votes
5answers
2k views

Copy terminal result from one window to another

I often have many terminals open when working (GNOME Terminal 3.4.1.1, Bash). Quite often I need to copy the results of one terminal into another. An common scenario: terminalA> pwd ...
4
votes
1answer
513 views

Why are the man pages for gvfs-commands not in Ubuntu? [closed]

These are the man pages for gvfs-cat gvfs-less gvfs-monitor-dir gvfs-move gvfs-rm gvfs-trash gvfs-copy gvfs-ls gvfs-monitor-file ...