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

learn more… | top users | synonyms (5)

2
votes
1answer
962 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
66 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
750 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 ...
3
votes
1answer
15k views

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

How to change the dark purple color of terminal in Ubuntu 12.10. And can we place any image or photo instead of that purple color.
2
votes
1answer
114 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
99 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
191 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 ...
2
votes
1answer
858 views

How to open Firefox URL having GET parameter, through Linux Command line

Not sure if it was asked before but I really couldnt find anything related to this. Heres my Question. Opening a URL in firefox through linux command line works fine, like below: firefox ...
0
votes
0answers
282 views

Execute BASH script on shutdown [duplicate]

I have a KVM switch (Trendnet TK 409) that helps me switch between my Ubuntu laptop and Linux computer. The switch use a hotkey for switching (numlock+numlock). Unfortunatly, that only works on ...
2
votes
0answers
37 views

How to package a shell script? [duplicate]

I have a shell script . I want to convert the script into a terminal application which can be installed using sudo apt-get install and can be run through the terminal by typing the name of the ...
1
vote
1answer
215 views

How to programatically temporarily prevent standby mode while particular (cron) script is running?

I have a script launched by a cron from an Kubuntu 12.04.01 LTS laptop to NAS. The script simply contains an rsync command backing up the laptop. The problem is that if the system goes into standby ...
14
votes
2answers
357 views

How to use commands on files which have “-” at the start of their names?

This may be a simple question, but how do I use files starting with "-" with command line programs? For example, I am trying to use pdfgrep on a file named -2013-01-01.pdf but it complains that ...
0
votes
1answer
251 views

Is it possible to install Gimp on Ubuntu Server and use it in command line from a php script?

I have a project where the users will be able to upload images from their browser. The project is coded with PHP. We need to process the uploaded images with some advanced filters and we need a good ...
0
votes
1answer
563 views

I downloaded ruby on rails, but it says it isn't installed.

I downloaded ruby on rails on ubuntu 12.10 through this tutorial http://technical-feeds.blogspot.ca/2013/02/how-to-install-ubuntu-and-ruby-on-rails.html. I did everything and it worked fine. I ...
0
votes
0answers
29 views

Change screen resolution in command-line ubuntu? [duplicate]

I have Ubuntu 12.10 running as a command line OS(No GUI installed) in VMware. But I cannot figure out how to get my system out of the really small window that everything thats installed into vmware ...
1
vote
1answer
55 views

renaming files with conversion from hex

I want to rename the below files, such that the first 4 chars and last 7 chars are removed, the remaining chars to be converted to decimal, while rename. Example if the filename is 0030002345678.txt, ...
0
votes
1answer
466 views

How to escape special characters in password? [duplicate]

I am trying to install SVN in Ubuntu. My network proxy has a password. In apt.conf when i do: Acquire::http::Proxy "http://username:pass@word@proxy_server:proxy_port"; It's not working . My ...
0
votes
0answers
28 views

symbol creatation problem

I have a shell script at /home/install/agent/run.sh I have to type: /home/install/agent/run.py once I want to run it. It is not flexible. So I try to create a symbol using sudo ln -s ...
3
votes
1answer
158 views

What is the difference between `command` and `./command`?

I found that sometime I use the command to run a command, but sometime I use the ./command to run another command. What is the difference?
0
votes
0answers
85 views

Change default command line, non-graphical browser?

I have elinks and w3m installed. elinks seems to be the default for using surfaw from the command line---I'd prefer w3m be the default. Is this particular to sr or is this a bashrc kind of setting? ...
6
votes
2answers
2k views

Make sound once process is complete

I have started a long process through a terminal. Is it possible to make the ubuntu terminal make a sound once the process is complete? This way, I don't need to stay checking, but ill be notified ...
2
votes
2answers
295 views

How to make terminal shortcut with this code in it?

Hi i am not good at terminal shortcuts or anything like that but if someone can give me instructions to make these to commands to a shortcut that will be awesome cd ...
1
vote
2answers
1k views

How do I create a custom config file in xboxdrv?

I just got a wireless xbox 360 controller with a usb receiver. I have tried to use xboxdrv to get it working as a mouse. The --mouse command works alright, but I wanted to customize some of the ...
0
votes
1answer
1k views

How to disconnect from wireless connection manually using the command line without using network manager?

I don't want to use WICD or NetWork-Manager. What should I type to disconnect ? EDIT: This one is different from the ones above, I want to disconnect. Another thing, I don't want use WICD nor ...
1
vote
0answers
55 views

editing youtube video description, titles through terminal

Is there a way to edit youtube video description and title/tags through terminal? If so, then how to do it? unfortunately, googlecl does not have such function yet.
1
vote
0answers
217 views

apachectl configtest shows Syntax ok even errors are there in the configuration file

Given below is one of my apache configuration files: <VirtualHost *:80> ServerName testeight.qburst.uws DocumentRoot /home/testeight/public_html/testeight1 ...
3
votes
1answer
1k views

Guake terminal appearance like a normal terminal?

I love how the normal terminal looks on Ubuntu. I recently installed Guake and the Guake terminal is pretty simple (ugly): white on black with a simple font. Furthermore it's inconsistent with other ...
2
votes
2answers
1k views

How to search for both within filename (find) and file (grep) using a single line of code?

I'm pretty sure I've done this in the past (and that an answer is out there somewhere), but can't remember right now. I'm looking for a one-liner to search for (and return / echo) matches in both the ...
2
votes
2answers
189 views

Autocomplete on Partial Matches in the Middle of a filename in Terminal (dash/bash)

I have a bunch of directories: 20130118-Cars_Directory 20130118-Bikes_Directory 20130218-Planes_Directory 20130228-Scooters_Directory Is there any way to change directories in the manner of typing ...
4
votes
1answer
887 views

LXTerminal and XTerm Resize Command

I want to execute a command in a bash script that will resize the terminal window. In xterm xterm -geometry=30x30 will create a new xterm window, and lxterminal --geometry=30x30 will create a new ...
3
votes
1answer
155 views

Help Debugging Backup Script

Every 3 hours the script will run and backup a folder "SOURCE" and it will save it along with the other backups of the current day in the folder "month-day-year" e.g. "03-24-13". When a new day comes, ...
4
votes
1answer
2k views

No effective root

I wanted to login as a user, but when I typed in login usr (usr is just a placeholder for the user name) the system returned: login: Cannot possibly work without effective root. How can I fix ...
2
votes
1answer
311 views

No shell prompt in gnome terminal

I was a bit behind and spent yesterday and a lot of bandwidth with three upgrades from 10.10 to 12.04. Most things seem to work but when, I launch the terminal, a get a new window but there isn't a ...
0
votes
1answer
175 views

Package error making it unable to install anything in 12.10

The other day I was trying out different desktop environments, like Pantheon, Gnome, etc. But when I was trying to install Pantheon/Elementary Shell, it came up with an error, I ignored it thinking ...
6
votes
2answers
76 views

How can I colorize code sent to STDOUT?

Most text editors - vim, emacs, kate, gedit - have colorizers, so that, depending on the language you're programming in, it will color the text differently. Is there a way to do that for code sent to ...
18
votes
5answers
16k views

How to list all variables names and their current values?

Including not only $HOME, $PWD etc but any other you have defined.
2
votes
3answers
74 views

How to see available commands that end with a certain string?

If you start typing and pressing tab the console tries to expand and show all commands, functions and executable scripts that begin with what you have started to write. Is there a way to see which ...
0
votes
1answer
109 views

Computer shut down during resizing of drive, stuck!

Basically I was trying to resize my drive since I was low on disk space for the Ubuntu OS using a WUBI of Ubuntu 12.10(I believe that or 12.04). But my computer shut down in the process. Now when I ...
3
votes
2answers
773 views

How can I configure the terminator terminal to always be on top?

I was able to set up the terminal to expand the whole monitor width but I would like for it to stay on the top of the screen even if I go to another workspace. If I hit F12 to drop it down when I am ...
2
votes
1answer
244 views

Execute shell script or command on idle time

I'm searching for an possibility to execute a shell script or command on a idle time in the bash shell. As an example, if I'm in a SSH session to a server of mine and after X minutes of inactivity in ...
0
votes
2answers
95 views

copying two files using one command

Copy two files from the /etc directory. They are cust_orders and cust_names. Copy both files from the /etc directory to your home directory using ONE shell command with your home directory as the ...
3
votes
1answer
414 views

Launching php script through comman line - keeping terminal window open after execution

Oh, my girlfriend really likes it when I launch php scripts! There's something special about them, she says ... Thus, I coded this script to run throught the CLI (Command Line Interface) - so it's ...
1
vote
1answer
67 views

Can I create a new script and chmod it in one command?

When writing answers on here, it's often necessary to create a new script and chmod +x it to make it executable. I won't go into whether this is a good thing or not, but explaining to people that they ...
4
votes
2answers
204 views

what does mean // directory?

i was working in my terminal, and than i misspelled when cd to root / accidentally i typed // and i got that in terminal as : root@weblocalhost://# when i type pwd, i get response // but when i ...
0
votes
1answer
2k views

Open file with terminal and close terminal afterwards

I want to open a file using the terminal on ubuntu. To have it independent from the terminal, I use gnome-open: gnome-open text.pdf And since I'm lazy, I also have this alias in my .bashrc: alias ...
0
votes
1answer
52 views

Recover From Crashed Session

Occasionally, my laptop dumps me out to a blank screen with an 'hid' error, indicating a problem with the mouse driver. Short of actually fixing the underlying cause, which I have tried to do, how ...
0
votes
2answers
43 views

grub does not update

I edit: /boot/grub/menu.lst and /etc/default/grub, but the terminal did not allow to update the Grub the code from the terminal: user@user-desktop:~$ sudo update-grub /etc/default/grub: 29: ...
2
votes
3answers
4k views

Getting cpu usage realtime

When I execute following command to get cpu usage , I get nice + user cpu usage. top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}' Output: 14.5 Here I am getting problem is that the output ...
6
votes
1answer
1k views

command line for hiding and unhiding unity panel

I use ubuntu 12.10 on a touchscreen with a digitizer pen to take notes and while I'm doing this I would rather to have all my desktop for this purpose. On the other hand while doing other stuff I ...
11
votes
1answer
438 views

Bash comparison and expression operators

I'm new to bash programming. I've read two good, long guides, but they made a mess in my head about operators and keywords. Which are more commonly and widely used? I don't know when to use which ...