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

learn more… | top users | synonyms (6)

2
votes
1answer
476 views

Custom shortcut does't work!

I would like to have a shortcut for a command: sudo nautilus "/" I tried to set it in Keyboard->Shortcuts->Custom Shortcuts but it didnt work. I also created shell file with this command and put ...
6
votes
1answer
12k views

How to run local shell script on remote server via SSH?

I want to run a local shell script on a remote computer with SSH. How can I do this?
3
votes
2answers
1k views

Where is “apt-cache search”?

Wish to search apt repositories with CLI tool. Did that in the past with: apt-cache search <search_term> Don't find apt-cache package: # apt-get install apt-cache Reading package lists... ...
3
votes
2answers
639 views

How to copy many photo file names with date and time to spreadsheet

I have numerous motion detector photos (JPGs) I copy to a DVD every day. I would like to copy the file name, original creation date and time of each of these photos and then extract this information ...
1
vote
2answers
215 views

How to launch apps installed from PPA?

I have installed a few apps from the Terminal by adding repositories and running commands but how do I access them? They aren't in the launcher and I can't see them in the Dash either. I'm running ...
2
votes
1answer
532 views

Video introduction to linux command line

I've been using ubuntu for like 3 years as my main os. I've used terminal many many times but never have I deeply understand it. I run commands, I'm familiar with the basic ones, but i want to dig ...
3
votes
2answers
3k views

Can't Login In to Ubuntu VM

Whenever I try to login into my Ubuntu VM from my username, it goes briefly to a black screen and then back to the login screen. I can login as "guest" though. I can login with just the terminal ...
2
votes
2answers
6k views

Can I do a command-line install with the 12.10 media?

From what I read on the mailing list, and on here, it looks like there won't be any alternative install CDs for Quantal Quetzal. I used to love those, as they enabled me to quickly whip out a ...
1
vote
1answer
2k views

Cron cannot run gnome-terminal

I set the following cron in my local machine. * * * * * /bin/bash -c /home/JSX/Stuff/J/login-check/open-console.sh The content of open-console.sh is the following:- #! /bin/sh gnome-terminal ...
4
votes
3answers
4k views

Using intel's pin tool on Ubuntu?

I'd like to use Intel's pin tool on Ubuntu 12.04 and having trouble installing it. I downloaded pin for Linux 64bit from here http://www.pintool.org/, extracted the package and compiled the examples ...
5
votes
3answers
19k views

How do I open GNOME Tweak Tool from the terminal?

I'm trying the live CD as I am a new user. From the terminal, I have installed gnome tweak tool. After I had installed it, I wasn't able to find any icon to open the program. When I opened Ubuntu ...
2
votes
2answers
5k views

Transmission shutdown script for multiple torrents?

I have written a shutdown script for transmission. Transmission calls the script after a torrent download finishes. The script runs perfectly on my machine (Ubuntu 11.04 & 12.04). #!/bin/bash ...
1
vote
1answer
682 views

How to monitor swap activity on desktop in real time (preferrably separately for each swap device)

It would be informative to know in real-time the swap activity (number of reads and writes per minute or similar measure). I intend to use it with conky. I can gather similar statistics by vmstat or ...
5
votes
3answers
12k views

Bash script to take screenshot and save the image - Ubuntu

I wrote a bash script as below: #!/bin/bash echo "Enter a file name" read filename import -window root $HOME/Desktop/$filename.png I expected this script to take a screen shot and save the image ...
2
votes
3answers
3k views

How do I change to ksh?

I need to learn some ksh details, but i don't want to change from bash to ksh permanently. What should i do? Is it possible to change shell only for a specific console session?
2
votes
3answers
4k views

Best practices for using 'sudo su'

I have been using the terminal for a while now and sometimes (actually, a lot of times) I use a command, like: cp /etc/test ~/testFolder/ and I get this error: cp: cannot open `/etc/test` for ...
31
votes
5answers
226k views

How do I remove a folder?

I'm a new user and Im trying to remove a specific folder. I am using sudo rm /path/ but its not working. What is the correct command to use? It is a file catolog I am attempting to remove but im ...
2
votes
1answer
426 views

Screen tab completion

Is it possible to make the terminal behave like screen when it comes to tab completion? In screen, when you press tab, it gives the possible completions just below, but doesn't display the prompt ...
2
votes
3answers
280 views

How to copy all .sol files in a system to a specific folder

I want to copy all the files that I have in the system with extension sol to the specific folder can you please help me. I tried sudo cp / *.sol ~/SOL/ but it doesn't work UPDATED: I tried to follow ...
0
votes
3answers
13k views

How to download a .tar.gz file [duplicate]

Possible Duplicate: How to install a .tar.gz (or .tar.bz2) file? I've been trying to download some linux programs, and I get.tar.gz files in my downloads. I've been trying to extract it ...
0
votes
0answers
35 views

Progress bar or percentage while copying in terminal [duplicate]

Possible Duplicate: Progress and speed with ‘cp’? Is there a way to enable the progress bar while using the cp command in terminal?
0
votes
1answer
1k views

copy from one folder to another not working in terminal

I'm new to Ubuntu. I installed it because i'm using it in my operating systems class in college. One thing needed to do is copy. This is the lecturers notes on how to do this: Change to your home ...
7
votes
4answers
60k views

Ping for 4 times

Usually I use ping to check my internet connection. In windows, if I use: ping google.com I get only 4 information ping, but on Ubuntu, if I use that command, the ping can' stop until I stop it ...
1
vote
1answer
2k views

Can't Install anything via terminal in 12.04

Note i am running off an 8GB usb with 4gb persistence enabled, no its not because of this because yesterday i had it all setup and working with everything downloading properly, then i made a new user ...
12
votes
3answers
1k views

Focus existing terminal with `Ctrl-Alt-T` shortcut

I tend to use the terminal a lot, So I wondering if there is a way I can make Ctrl+Alt+T focus the existing terminal if there is one, otherwise create a new terminal?
1
vote
1answer
2k views

Boots up into Terminal

I am running a 64 bit version of Ubuntu 12.04.1, and I when I boot up, I am thrown (Rather violently. :P) a full-sized terminal, instead of my lovely GUI login screen.. So I looked around and tried ...
2
votes
1answer
924 views

Java console doesn't recognize arrow keys

I have some strange problems with a java console on my 10.04 server (it's actually the console of a minecraft-server, but I believe it's a general problem and not something minecraft specific): arrow ...
3
votes
1answer
2k views

How do I install GoodSync?

I am heavy user of GoodSync (Link) on my windows boxes, and I'd like to give the command line version a try. So I download the Linux packet on my Ubuntu rig, and extract it, but from then on I am ...
8
votes
2answers
5k views

changing system terminal colours?

So I have my computer set up just the way I want, with gnome 3 in my favorite color scheme, and the terminal in a matching background/text color scheme. Even the login screen has my Desktop ...
6
votes
1answer
5k views

How do I choose which way to enable/disable, start/stop, or check the status of a service?

If I want to start a system installed service, I can do: # /etc/init.d/some-svc start # initctl start some-svc # service some-svc start # start some-svc If I want to disable a service from running ...
2
votes
1answer
806 views

How to comment out code in a file VIA Terminal

I am following This Tutorial to make my Android an external monitor for my Ubuntu 12.04 computer. How do I do the following: Edit your vnc session file $ vi ~/.vnc/xstartup Comment out ...
5
votes
3answers
10k views

List of all shared folders

Is there possible to list all shared folders (with their physical locations) from command line?
4
votes
1answer
4k views

How to run Ubuntu Tweak's janitor automatically?

My aim is to have the janitor running at startup, with a pre-configured profile (e.g. clean old packages and empty the browser cache), much like CCleaner's /AUTO parameter on Windows. The website is ...
0
votes
1answer
379 views

Modify thermal trip points

Can you please instruct me on how to modify critical trip points. My computer keeps shutting down and my sensors are telling me that I am running hot when utilizing demanding programs. I am utilizing ...
2
votes
4answers
431 views

How to short this command?

Every time I need to use sublime to open a project from terminal, I have to do this: nohup sublime . & Is there a way to short it?
7
votes
2answers
28k views

From terminal , how make a LIVE USB for all distro's ,not only for Ubuntu? [duplicate]

Possible Duplicate: Create USB installer from the command line? With curiosity I have on terminal, I came to this step. How can I create Live USB from terminal? Is there any tool i got to ...
8
votes
3answers
5k views

What keyboard shortcut changes the `xfce4-terminal` terminal text size?

It used to be that Ctrl + - and Ctrl + + would increase or decrease the text size of the terminal in earlier versions of Ubuntu, which is helpful when you're giving presentations and want to show your ...
5
votes
2answers
3k views

How to open a GUI app from Terminal without losing terminal input [duplicate]

Possible Duplicate: How to clean launch a GUI app via the Terminal (so it doesn't wait for termination)? If I have a terminal open in X-window, I can start a GUI app from the terminal. ...
1
vote
1answer
2k views

Is it possible to execute terminal commands using PHP?

Is it possible to execute terminal commands using PHP? I need to display cores alloted to each VM and some other details of the virtual machine. Am using KVM. can anyone help to do so. Am using Ubuntu ...
5
votes
3answers
555 views

Any way to list similar commands?

When you write the command name wrong, bash often does this: septi@norbert:~$ good No command 'good' found, did you mean: Command 'gold' from package 'binutils' (main) Command 'gmod' from package ...
0
votes
1answer
317 views

Crash During Update Deleted ALL panels; can't open terminal; can't see icons [duplicate]

Possible Duplicate: Recover the package manager after crash during update So I was upgrading Ubuntu from 11.10 to 12.04 in the terminal after recovering my system from a previous crash, and ...
3
votes
2answers
2k views

How to set MANPATH without overriding defaults?

I have added extra directories to $PATH by exporting PATH=/my/dirs:$PATH But I am not sure if I should do the same to MANPATH. Because default MANPATH is empty yet man command works. I found a command ...
1
vote
3answers
456 views

How do I copy music files in order?

Is there a command to copy music files in order? I need to copy MP3s which are in folders by "Artist - Album" to a USB stick. The MP3s must be copied in order, for example 01 Can You Feel It.mp3 ...
2
votes
2answers
317 views

How to add information indicators to a Launcher icon from a script?

Some applications place informational text over their icons in the Launcher. For example, Thunderbird shows the unread message count, and Update Manager shows the number of updates available and a ...
6
votes
1answer
16k views

How to start unity after boot into command line with “text”-option?

I want my system to boot terminal only, but be able to launch Unity once logged in. I've edited /etc/default/grub from : GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to ...
5
votes
1answer
3k views

Copying root partition and /home to a new larger hard drive

I am getting a larger hard drive and would like to copy root directory to it. The partition for root is 20G. I would like to make it larger on the new drive. I also would like to copy /home to a ...
5
votes
4answers
56k views

Finding the ip address of another computer on the network?

Is there a program which can tell me the ip address of a computer when is connected to my network? A list of names or ip addresses. For example when my wife is on my main desktop computer I can ...
1
vote
2answers
2k views

Issue with lib32asound2

I'm complete new to Ubuntu so please pardon my ignorance. Every time I install something I get the same error at the end. for example... sudo apt-get clean && sudo apt-get autoremove ...
6
votes
4answers
10k views

How to connect to internet through command-line?

I normally connect to internet through my mobile phone's SIM card. Its a GSM network. To connect to internet in GUI manner I go to notification bar, click on network icon, and click on connections ...
0
votes
2answers
737 views

Is there a messenger service implementing something like Windows's “net send”? [duplicate]

Possible Duplicate: Send messages between 2 Ubuntu PCs (Net Send Style) In the microsoft universe you can do funny things with the net send command. According to this I have two questions ...