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

learn more… | top users | synonyms (6)

2
votes
2answers
251 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
450 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
417 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 ...
1
vote
1answer
2k views

How to run a Perl command?

If I am running the following command to replace a string dst_ with dst_addr_ in multiple files. perl -pi -w -e ’s/dst_/dst_addr_/g;’ *.tcl it shows the following error: Unrecognized character ...
22
votes
4answers
20k views

How to show ascii art at the top of the terminal when it's opened?

As you can see on this screeshot of Mik's Guake he have a statup message of ascii art when he opens it, and that's what I'd like to do, can someone help me?
17
votes
7answers
97k views

What command should I type to run Chrome from the terminal?

I have remote box accessed by VNC and jwm desktop. No menus, not desktop icons, only a terminal window. I have downloaded Chrome's .deb package and installed it. Now how can I run it from the ...
3
votes
1answer
333 views

How can I test if a variable matches another value and move to another function?

I am writing a script where I store a predetermined line of text into a string (we will call abc). I am storing the results from grep -iqs $USER file (we will call def) into another string. How can ...
2
votes
3answers
6k views

Where is my Android phone's mount point, so I can rsync it?

I would like to rsync my music with my Android phone (Galaxy Nexus), I'm trying to work out the mount path to use from the shell. The mount command doesn't show up on the phone. In Nautilus the ...
0
votes
1answer
603 views

Dumping a list of corrupt video files & quality

Having trouble finding a solution to this. I have a folder with a few thousand movies in it, and maybe 20-30 are corrupt. I'm trying to find a way to list these corrupt files (NOT delete them). They ...
0
votes
1answer
325 views

Find and exec using pulled variable

So far I have a simple batch script that moves *.mkv files from their source folders to a folder called "Movies". Now I would like FileBot to rename them using the 'find' command, since it (filebot) ...
2
votes
1answer
801 views

Running powerpoint slides from Ubuntu terminal in Windows 7 using VirtualBox

Does anybody know how I can run MS powerpoint slides from Ubuntu terminal (my host OS) in Windows 7 (my guest OS)- I think I should use .pps to run it automatically. What I'm doing now is: VBoxManage ...
-1
votes
1answer
2k views

How do I get past a 'frozen' terminal with a sudo password prompt? [duplicate]

Possible Duplicate: Nothing shows up in the terminal when I type my password When running the Terminal and asked for password the terminal freezes - cannot type in or paste. What is the ...
2
votes
0answers
30 views

License agreement won't go from terminal [duplicate]

Possible Duplicate: How can I accept Microsoft EULA agreement for ttf-mscorefonts-installer? After I install software via apt-get from the terminal I get the following: TrueType core fonts ...
4
votes
3answers
213 views

Any apps for hosting a terminal app as a website?

I'm building a command line utility and one of my clients (who's not so computer savvy) wants to have access to it. I was wondering, is there anything available that would let me redirect stdin/stout ...
0
votes
1answer
6k views

Crontab and Shell Script not Executing [duplicate]

Anybody any suggestions on why my crontab and shell script is not running. I have chmod +x my shell script and added the following into crontab -e */5 * * * * bash cd /home/jclark/scrips/ipcheck/ ...
3
votes
1answer
1k views

How do I use a text-only interface to log in? [duplicate]

Possible Duplicate: How do I boot to a command line interface instead of a GUI? I am running Ubuntu 12.10. When my computer boots, I want to log into my computer only using the CLI, not the ...
4
votes
2answers
3k views

Why doesn't “whereis” locate a file?

I was looking for a specific file using whereis from the command line. I got a rather useless result, but I then found the exact file I was looking for by manually searching. I did not make a ...
8
votes
2answers
4k views

How to kill applications like on Windows?

I looked it up on google but I didn't find anything helpful. Anyway, I was playing Crysis 2 (with PlayOnLinux) and the game crashed, but I could't kill the process, I tried Ctrl+Alt+T but nothing but ...
5
votes
3answers
35k views

How do I become a “superuser”?

The following command fails with an error: $ dpkg -i libmotif*i386.deb dpkg: error: requested operation requires superuser privilege How do I become a superuser? I thought I was the superuser?
1
vote
1answer
288 views

grep command not returning all results

I am running the following command but not all files that I know have this string are being returned and I cannot work out why. Specifically the apache log files which are under this path are not ...
7
votes
3answers
600 views

How can I list all files and folders beyond a specified size limit?

In a partition I have several files and folders, and I can list all those file sizes with du like this: du -h But how can I list all the files which are beyond a specific disk space size like 5MB?
2
votes
1answer
2k views

Error in using HTTP through Telnet on terminal

To access www.ietf.org/rfc.html, I entered the following commands: telnet www.ietf.org 80 > log get /rfc.html HTTP/1.1 Host: www.ietf.org While I was in the midst of typing the 3rd command, the ...