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

learn more… | top users | synonyms (6)

1
vote
1answer
1k views

How can I unzip files with “weird” extensions in ubuntu?

How can I unzip such files in ubuntu? I have a list of files end with those extensions filename.tar.gzaa filename.tar.gzab filename.tar.gzac filename.tar.gzad filename.tar.gzae ...
10
votes
3answers
9k views

Why do question mark characters appear when changing the permissions of directory?

I am trying to change permissions of a folder temporarily whose initial permissions are user@ubuntu:/var/log$ ls -l squid* squid3: total 4 -rw-r----- 1 proxy proxy 0 Jan 16 14:43 access.log ...
0
votes
1answer
3k views

Can't send emails from the terminal

I setup a basic email sending only server on my laptop using the following sudo tasksel install mail-server But for some reason I didn't get asked what kind of installation I want to do, i.e. a ...
3
votes
3answers
928 views

How do I search a folder for all zip files, unzip them, then 7-zip the root folder as 1 large zip?

I have a problem. I need to compress a root folder, but it has a lot of ZIP/BZIP/TAR files in its subfolders. Can someone show me a script that will search and unzip each subfolder's zip file and then ...
1
vote
0answers
22 views

What to do when system locks up [duplicate]

Possible Duplicate: What should I do when Ubuntu freezes? Let's say the entire desktop freezes and nothing's responding... In Windows I'd just hit Ctrl+Alt+Del then find the application ...
1
vote
2answers
769 views

How to run app “quietly” on ubuntu vps via ssh

I have an ubuntu vps and I want to run an app through ssh but I want to do it "quietly". I mean, when I for example start top, it is displayed in my ssh console and I don't have access to my vps ...
12
votes
5answers
22k views

What commands will change my screen's brightness?

I'm trying to re-keybind some of my function keys as I never use them for multimedia purposes, however I'm not sure as to what command I'd need to put it to increase/reduce the brightness, I'm talking ...
3
votes
0answers
2k views

How to install qtquick 2.0 and ubuntu components 0.1? [closed]

I am facing this problem while making a currency converter program in qt creator. The program is as follows: import QtQuick 2.0 import Ubuntu.Components 0.1 Rectangle { id: root width: ...
2
votes
1answer
1k views

How to mount an external hard drive as root?

I recently changed my external hard drive so that it can be read/edited by all, not just myself. In doing so I think I made it so only the root user can mount it. When I tried to mount it today I got ...
0
votes
1answer
117 views

How to tell which packages are available to install using apt-get?

Using Ubuntu Software Center I can perform a search on an approximate package name and get the matching packages list to select from. If I work on a remote machine via ssh (i.e. command line only), ...
3
votes
1answer
173 views

How to use “read” to enter a directory “cd” to change a file “chmod +x”?

The following Bash script exits after the first read -p line. #!/bin/bash clear echo Put me next to your targeted .sh file! read -p "Press [Enter] key when placed next to target..." echo Type your ...
3
votes
2answers
779 views

ctrl+alt+t random terminal opens

When I need to open a terminal I press Ctrl+Alt+T to save time. Most of the time absolutely nothing happens, I try to press same combination again, and still nothing happens. After like 5-8 tries ...
5
votes
2answers
38k views

How to force any program to close?

Sometimes programs tell me I can't start it because there is already another instance of it running. Best example would be Firefox and Chromium, but this problem accounts for many applications. I ...
2
votes
1answer
1k views

How do I launch gnome-terminal inside a specified directory?

I created bash script to open terminal in current directory because of an issue with nautilus-open-terminal. The problem is, this one doesn't work gnome-terminal --working-directory = ...
3
votes
3answers
6k views

how to install anjuta 3.6 ide - 12.04 with kde

I have downloaded the file anjuta-3.6.1.tar.xz from here --> http://projects.gnome.org/anjuta/ now I would like to install it but I don't know how. I have looked at the install.txt and I have done cd ...
2
votes
1answer
288 views

Git gui here script

I want to open git gui in any folder using context menu. It something like cd <path to folder> git gui in terminal. How to add this functionality into context menu?
2
votes
1answer
185 views

how to switchback to user with uid 1000 in shellscript

I Have created the following shell script. #!/bin/bash ... #Cleanup sudo update-rc.d mysql defaults sudo update-rc.d apache2 defaults ln -s /etc/drupal/7 /home/$USER/drupal ...
1
vote
1answer
629 views

Piping multiple audio files to totem media player

My gf likes the Beatles so I placed a couple of tracks on my harddisk ... Beatles - Here Comes The Sun.mp3 Beatles - If I Fell.mp3 Beatles - Tell me why.mp3 Beatles - Things we said today.mp3 ... ...
2
votes
2answers
1k views

How to make a program start in terminal after some time

I want to make a shortcut that will run utorrent every time i click it without me doing all the commands in terminal every time... I created a script the run cd my utorrent folder and then do the ...
2
votes
2answers
249 views

How to use single-thread script to do batch processing?

I have a single-thread python script that gets used like this: python -c "arg" I also have a *.txt file with many arg, each in one single line in the respective *.txt. A text file, say 1.txt ...
3
votes
3answers
3k views

Cron works, but scheduled job to open webpage in chrome does not

Updates START A friend of mine just answered this. I need to do this export DISPLAY=:0 && <my GUI dependent command here> Waiting for him to post the answer here. I have tried ...
2
votes
1answer
159 views

Why does my shell open many instances of itself?

I've been messing with the chsh command so that I could change the name displayed in my shell before each command is issued, for example picard@ubuntu:$. My problem arose when I gave the command chsh ...
3
votes
2answers
6k views

What's the function of wget's -O -?

I see some linux page says how to install the key: wget http://packages.ros.org/ros.key -O - | sudo apt-key add - What is "-O -" in wget? It seems related with "add -". How these works? Thank ...
2
votes
2answers
187 views

“No such file” error when directing output to a file

I am running Ubuntu 12.04. In my accounts .bashrc file I have the line alias ftreport='cd / && sudo tree > /home/<user name here>/Documents/Reports/Tree_$(date +%s).txt' After ...
6
votes
3answers
1k views

The command 'which cd' prints nothing in 12.04 [duplicate]

The command which cd prints nothing. Same for whatis cd and whereis cd. How can I find out if cd is an alias, function, or bash built-in? I'm using Ubuntu 12.04.
9
votes
3answers
5k views

How to find all images with a certain pixel size using commandline?

I am trying to find all JPG images within a folder with subfolders that have either width or hight below 300px. This way I want to detect old thumbnails and delete them. For sure I can find all ...
1
vote
1answer
449 views

How to I insert a command into a script located on a remote server?

I want to insert rm $0 in a script (/home/user/config-script) located on remote server with echo "rm $0" >> /home/user/config-script with expect. But fail because expect interprets $0. ...
5
votes
1answer
6k views

apt-get install git-core failed

After running sudo apt-get install git-core, I get Unpacking git-core (from .../git-core_1%3a1.7.4.1-3_all.deb) ... Errors were encountered while processing: ...
3
votes
2answers
17k views

Boots up in terminal and startx can't be found

ubuntu 12.04 newest kernel 3.7.1 Ok, I downloaded "Eclipse" in order to do some programming. then I wanted to reinstall it so i " sudo apt-get --purge remove [Ecplise] ". Then I restarted my ...
9
votes
3answers
7k views

How do I rotate my display when not using an X Server?

I have a widescreen monitor that rotates. I'm trying to use it in 'landscape' mode (vertical). This is easy in the GUI. How do I rotate my display when I am not running an X Server or when I am ...
1
vote
1answer
2k views

How can I install nbconvert?

I tried installing nbconvert via the instructions on their readme. The curl line and the pip install line worked flawlessly, but I can't decipher what is meant by: You will need to either put the ...
4
votes
2answers
860 views

Ubuntu for phones - is there a terminal similar to the one known from PC's?

I am thinking about install Ubuntu on a phone. I spend a lot of time in terminal while working on my PC. There are much things I do using bash scripts, for example. Then, is there a terminal on ...
1
vote
1answer
7k views

how to connect to wireless network through terminal [duplicate]

Possible Duplicate: How do I connect to a WPA wifi network using the command line? Connecting to wireless networks from command line I am a newbie to ubuntu 12.04.pls tell me how to ...
1
vote
1answer
108 views

How do I install a program from a executable CD?

Now by executable CD I mean a disk that usually would run and install a program but for some reason isn't. I would particularly like to know how to install it from the command line (terminal). Please ...
3
votes
1answer
125 views

Launching a program with several files through terminal expansion problem

I'm making a program that launches vlc with a set of files saved in a variable. But it doesn't work it seems to have a problem with the names, what is weird (for me) is that in the end the problem is ...
4
votes
1answer
2k views

How to run - from Firefox context menu - terminal commands selected in web pages?

Instead of copying it from the web and pasting it in the terminal, I want to be able to select a command displayed in a web page and with right click context menu to add it and run it in terminal. ...
6
votes
1answer
1k views

Launch a program keeping focus on terminal

I'm making a script that combines taking input from the command line with the launch of other programs. So the script will go like this: ... launch program Read input from the terminal ... The ...
5
votes
2answers
4k views

How to open a new tab in the server command line?

What are the keyboard shortcuts to manipulate tabs (open new tab, navigate between tabs ...) in the command line of ubuntu server 12.04?
34
votes
3answers
21k views

How can I open a file when I do not know what command opens it? [duplicate]

Ubuntu noob here. How do I open a file in a working directory? I have already tried ./MyFile.jpg And it replies with bash: ./MyFile.jpg: Permission denied Now, that got me thinking that I had ...
2
votes
2answers
2k views

Which command do you execute to open Gnome Disk Utility (Disks)?

I have tried gnome-disk-utility and it has failed. Yet again I have deleted the launcher for, 'Disks' which is gnome disk utility and now I can't see how I can open it. I am running 12.10. Which ...
2
votes
2answers
4k views

Run a terminal command at startup [duplicate]

Possible Duplicate: How to make xinput settings persist after devices are unplugged, replugged, and after shutdown, restart, etc? How can I run the terminal command sudo xinput ...
2
votes
1answer
4k views

Is there a command line tool to shrink partition size?

I have searched around and found this page. But is GUi tool. IS there a command line tool I can use to shrink one of my partition size Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 ...
2
votes
1answer
11k views

Can't start unity from command line

For learning purposes, I'm trying to start my GUI (unity) on Ubuntu 12.04 from the command line. I've changed quiet splash in /etc/default/grub to text and I successfully booted into the command ...
4
votes
1answer
835 views

Terminal Show Multiple Languages

At work, I need to connect to databases, and these database contain fields that hold Chinese, Russian, Spanish, Japanese, etc. characters. When pulling them up in my terminal, I get question marks. I ...
3
votes
1answer
1k views

How can I change the keyboard shortcuts in nano?

To indent a whole block of code in nano, after selecting it with alt+a, I have to press alt+{, which doesn't work on my german layout macintosh keyboard (and would be pretty annoying even if it did). ...
1
vote
1answer
3k views

How can I keep Terminal always on top of other windows?

I want to keep gnome-terminal application on top of all the applications, even when it is unfocused. How can I do so?
5
votes
2answers
943 views

Transfer browser tabs from Firefox to Google Chrome

If Google Chrome and Firefox are both running, is there any way to transfer all browser tabs from Firefox to Google Chrome? I want to write a shell script that will transfer all tabs from Firefox to ...
3
votes
2answers
416 views

Hiding terminal output when chaining commands

From the terminal, I like launching my standard working applications ... gedit with my todo-list, firefox and chromium. To save time, I (1) chain this command into one line, (2) silence all error ...
8
votes
1answer
7k views

Simulate media keys in terminal

I have a new android phone that has a number of apps for communicating though an ssh connection. I would like to know if I can use ssh commands if I can simulate key pressed, specifically the media ...
7
votes
3answers
1k views

Make multiple files hidden?

I have a group of files I want hidden to avoid clutter. Is there a command that can simply make multiple files hidden? Is there an application? Is there a single command that will make the files I've ...