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

learn more… | top users | synonyms (6)

1
vote
1answer
1k views

Ubuntu 12.04.2 LTS boots to command line of some kind

I recently built a computer, then installed Ubuntu 12.04.2 LTS (Desktop, AMD64)using the Universal USB Installer from pendrivelinux.com. When it was first installed, the Unity bar (at the left) was ...
1
vote
2answers
204 views

A package was installed badly. How to remove it?

When I'm trying to update or install anything I get this error: Reading package lists... Done Building dependency tree Reading state information... Done E: The package equalx needs to be ...
0
votes
1answer
467 views

Bash script indenting command line

Hi I have used the following script, which after it has run and exited, causes my command line to display no text when typing, and after each carriage return instead of starting a new line like ...
0
votes
1answer
1k views

How to call php or apache to render a page from the command line?

I am running apache2 as a web server. I have a local file, example.php, which I need to see as rendered by apache. The easiest way to do this would be to move or link the file to the folder apache ...
2
votes
2answers
198 views

How do I remove a specific line and lines just before and after it?

I'm making a summary of the history.log files in /var/log/apt. To that end, I want to remove lines containing a certain pattern as well as the line immediately preceding and the line immediately ...
10
votes
1answer
947 views

What does this “… | ps `cat`” command do?

On my Internet research, I found the following command as solution to find the process name of a window: xprop _NET_WM_PID | sed 's/_NET_WM_PID(CARDINAL) = //' | ps `cat` I just do not understand ...
1
vote
1answer
621 views

Any command to check packets received and transmitted

Is there any command line option to check how many packets my P.C is receiving and transmitting in real time (something like top) ?
6
votes
6answers
12k views

How can I make ascii-banners from the command line?

I've seen people using the terminal command: banner. This creates big ascii-art-style text. When I try to run it, however, the terminal says it doesn't exist. Why? How do I install it? Are there any ...
4
votes
3answers
776 views

Is there a package management system for shell scripts?

Is there a package system (think npm, cpan, etc.) for shell scripts? Specifically, on Ubuntu?
4
votes
1answer
2k views

What do the numbers in the output of apt-cache policy tell us?

$ apt-cache policy pal pal: Installed: 0.4.3-8 Candidate: 0.4.3-8 Version table: *** 0.4.3-8 0 500 http://in.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages 100 ...
0
votes
1answer
3k views

Unable to run compiled files - bash: ./a.out: Permission denied. (I've tried chmod)

First of all, there are many questions like this on AU. Still, none of them solved my problem. I've compiled my C source using cc test.c, and it did generate a.out file. However when I run it I get ...
0
votes
1answer
101 views

Couldn't get desktop environment

I'm totally new to Linux. I've downloaded Ubuntu 12.10, and mounted it using virtual clone drive. I chose Demo and full Installation and on the next page I chose Help me to boot from CD and I clicked ...
0
votes
1answer
2k views

~/.profile OR ~/.bashrc OR ~/.pam_environment

Please which one of these should I edit to give me required result of the path to my programs both in normal user and as root. I have added in normal user and as root but there is error as quoted ...
0
votes
2answers
2k views

Installing netflix, terminal is getting hung up

Just got Ubuntu up and running, I am attempting to follow the steps laid our here to install Netflix via Wine. I have done the 3 terminal commands, and I believe the package has downloaded. The ...
3
votes
1answer
288 views

Why did Ubuntu try to self-destruct?

I was using Ubuntu happily for some months (almost fully updated, latest AMD driver and everything). About a week ago I started trying to install some games that I bought on Humble Bundle that I ...
10
votes
0answers
128 views

Configuring the gedit embeded terminal [duplicate]

I have two problems with my gedit embeded terminal: First my terminal line is white and black, and I really want it to be like the Ubuntu terminal line that is purple: Embeded terminal: Regular ...
24
votes
3answers
49k views

Better terminal for Ubuntu?

Suggest please a terminal application for Ubuntu desktop which meets next requirements: 1. Paste via Right Mouse Click (without showing the context menu) 2. Copy via Mouse selection. 3. Solarized ...
6
votes
1answer
40k views

How do I change the screen resolution using Ubuntu command line?

I installed Ubuntu and the resolution of the desktop is so big it only shows about 50% of the screen but is shows up normal while using command line. What would I type in the command line to change ...
2
votes
5answers
3k views

JPG batch compression & rename (find -exec, xargs, piping?)

this is my first post so I hope you'll be kind enough to forgive me if I make some formatting mistakes or else. This is one question I've had for quite some time and while looking for answers I have ...
2
votes
2answers
133 views

How to add a password option in CLI?

I've googled extensively but haven't found how to add a password option so I don't have to type it in manually. I've created the following alias: alias int='sudo service network-manager restart' ...
0
votes
1answer
390 views

Change VPN gateway with command line

Is there a way to change the gateway of an existant VPN connection with a command line? Changing the gateway value in the connection file with sed doesn't work for me. Thanks
1
vote
2answers
323 views

How can I rename a file in a different path without changing the current directory or writing the path twice?

For example, I want to rename tif/fat/tul/codes/MyCode.pl to TheCode.pl in the same directory. Currently I know these: mv tif/fat/tul/codes/MyCode.pl tif/fat/tul/codes/TheCode.pl , which requires ...
0
votes
1answer
714 views

how to add daily events via command-line?

Is there any way to add the our events from he terminal ? I know the GUI way but I want to do it from the terminal .
1
vote
1answer
265 views

Virtual terminal (CTRL+ALT+(Fx) doesn't work

I'm trying to get to any virtual terminal by pressing CTRL+ALT+F4 (for example) but the only thing I get is a black screen with the underscore blinking in the upper-left corner. The only thing I can ...
0
votes
1answer
84 views

cant install a thing! [duplicate]

OK. So when I try to install a something in the terminal, I get: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). I then try using apt-get -f install, but ...
11
votes
1answer
12k views

Why do I have no prompt in terminal on XFCE in ubuntu 12.04

I have Ubuntu 12.04 and have tried a few desktop environments. I am currently testing out Xfce. It has a terminal emulator called "Terminal". When I launch it, I just get a black screen. Xterm, ...
3
votes
1answer
68 views

Environment var _

I send a printenv command in the commandline and I see one of the variables is the following: _=/usr/bin/printenv I now do this: mo@mo-Toshiba ~/Workspace $ printenv _ /usr/bin/printenv but when ...
1
vote
0answers
258 views

`libqapt-runtime' contains empty filename error while updating

Whenever I try to update Ubuntu 12.10, it always gets interrupted by this error: files list file for package `libqapt-runtime' contains empty filename I have tried to install with apt-get as well ...
3
votes
2answers
3k views

Are these terminal commands safe for installing Evolution 3.8.0?

I run 12.04 and want to update my Evolution to 3.8.0. I found a solution and would appreciate help knowing, whether it is correct and safe. Any better solutions are welcome. I have never compiled from ...
1
vote
1answer
260 views

Rename files in group

I've folder and file structure like Folder/1/fileNameOne.ext Folder/2/fileNameTwo.ext Folder/3/fileNameThree.ext ... How can I rename the files such that the output becomes ...
9
votes
2answers
39k views

How to make terminal autocomplete when there are several files/directory?

If I have several directories, like: afoo abar sometimes my terminal will refuse autocomplete when I press tab (e.g. "cd a" then tab), and print the list of directories instead. Sometimes it even ...
0
votes
0answers
56 views

Very basic command line question [duplicate]

I'm very new to Ubuntu (and Linux). I forgot my main password and looked up how to delete it and now I'm at a root menu screen that says "-d, --delete". My question is what do I actually need to type ...
2
votes
2answers
33k views

export http_proxy: where does the proxy setting get stored?

Today by mistake I had entered the following command in terminal with incorrect information export http_proxy="http://usrname:passwrd@host:port" and then my internet connection was having trouble. ...
1
vote
2answers
299 views

How do I get python2.7 back to the command “python”?

When i do the command python i get the folowing. Python 2.6.8 (unknown, Apr 9 2013, 19:12:12) [GCC 4.7.2] on linux3 Type "help", "copyright", "credits" or "license" for more information. I want ...
0
votes
1answer
301 views

How to enter a folder with name # from the command line in Ubuntu?

I have a folder, name of my folder is #. How can I change directory (cd) to this folder.
4
votes
1answer
477 views

Finding a process's filename from its PID?

I'm trying to figure out what program keeps killing the network indicator: $ nm-applet ** Message: applet now removed from the notification area ** Message: PID 31340 (we are 28924) sent signal 15, ...
6
votes
1answer
663 views

Setting an admin user via the GUI - command line equivalent? [duplicate]

To designate a user as an administrator from the GUI, you can simply open-up that user's properties and select the Account type as the "Administrator" option. If the user already exists, what ...
9
votes
2answers
3k views

Why .profile (and not .bashrc) appends ~/bin to path?

Since .bashrc is more "generic" (in the sense that .profile sources it), why "include ~/bin to path" procedure is not inside .bashrc? Why the user would not want it in a non-login shell? (Especially ...
40
votes
2answers
27k views

Bash: delete word ahead of cursor

Consider the following bash prompt, where ^ denotes the prompt location: svn commit -m very/long/path/to/some/file "[bug 123456] Fix the pixel issue" ^ I'd like to commit a different ...
9
votes
2answers
31k views

Does Ubuntu-GNOME 13.04 Contain Gnome Classic Session?

If I understand right, Ubuntu-GNOME will be using GNOME 3. I was wondering if it also included Gnome Classic as well, or if I would have to go download it?
2
votes
1answer
3k views

How do I set up a background Image for console in ubuntu [duplicate]

Some of you may know this from opensuse. There the console is able to have a background. Is Ubuntu also able to have a backround image outside the x window system?
16
votes
1answer
13k views

How can I enable/disable Dash online results programmatically?

How can I change this setting from a Bash script? My plan is to enable it only on certain network connections.
1
vote
1answer
11k views

What characters to escape in terminal?

I know, that there are several characters that should be escaped. For example: $ cd /home/Username\ with\ spaces/Desktop I know another option is to enclose it in single-quotes. $ cd ...
3
votes
1answer
3k views

Command for reporting free/used space on *unmounted* partitions?

Are there any commands that reports free (or used) space left on unmounted partitions? The partitions will have either NTFS, FAT or Ext2|3|4 filesystems... A bonus would be a program that also ...
2
votes
0answers
75 views

How to start a terminator instance always with a set of terminals (each one in a different directory) in one window [duplicate]

I want to open the same set of directory locations in one terminator window as multiple terminals every time by default (or when I run a script). I think it could be done via profiles or layouts. man ...
0
votes
2answers
2k views

“run in terminal” option in nautilus actions configuration tool doesn't work

I'm running Ubuntu 12.04 and Nautilus Actions Configuration Tool 3.1.4. When ever I select the option 'run in terminal' in execution tab...it doesn't work. The comand i'm running shows a progress bar ...
19
votes
1answer
77k views

how to change the background color of terminal emulator background in Ubuntu 12.10?

How to change the dark purple color of terminal emulator background in Ubuntu 12.10. And can we place any image or photo instead of that purple color.
2
votes
1answer
166 views

Convenient method for frequent ssh

I frequently have to access the departmental servers while I'm off campus which requires: ssh user@public.school.com then enter password, then ssh private.school.com then enter same password ...
1
vote
1answer
303 views

How to get rid of whitespace around image file?

I could not delete the extra white space around a .eps file in Ubuntu 12.04. I have done the same, using the command fixbb <inputfile.eps> <outputfile.eps> in earlier versions but in this ...
4
votes
1answer
439 views

terminal hangs on “Do you want to continue [Y/n]? y”

I am running an install on Ubuntu 12.10. In the terminal I enter: gksudo apt-get install <package> I am then prompted: After this operation, 4,789 kB of addition disk space will be used. Do ...