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

learn more… | top users | synonyms (6)

5
votes
1answer
5k views

vim & colors from ANSI Escape Sequences: how to display in vim the same colors that are displayed with the cat command

Here's what I'm doing: I'm echoing through Php colors like this: php creates output containing ANSI escape sequences that color text when it is displayed through the shell on my terminal. You can ...
1
vote
2answers
2k views

connect to server from command line

In ubuntu 12.04 there is a connect to server in the global file menu. I use this to connect to my websites ftp server. Is there a command to do this from the terminal?
3
votes
1answer
223 views

correct syntax to compare field with awk

First I aplogize for this idiot question . I want to print a field if he is equals to a value . The problem is that I'm using a non default field sperator and I didn't understand how to make it work ...
1
vote
2answers
247 views

What does this warning mean in find command?

I am trying to learn the find command, please help me with this warning: ankit@battlestar:/home/mount_150/studies$ find -iname "*.pdf" -exec cp -ar {} lcommands/ \; cp: `./lcommands/june.pdf' and ...
4
votes
4answers
5k views

Why does sudo gedit NOT open files starting with Exclamation mark

When trying to open a file with sudo gedit /path/to/file with a file name starting with a ! in front eg !config.ini i can not open the file. However if i do sudo nautilus then open the file with gedit ...
2
votes
1answer
2k views

How do I keep terminal line from overwriting itself?

In a terminal window any smaller than fullscreen, if I type in a long command it starts overwriting the current line I'm on. If I type an additional line's worth, it finally moves to the next line. ...
0
votes
1answer
1k views

Can't install tar.bz2 file due to “no such file or directory” error

I've been trying compile mdk3-v6 but I run into errors. Started off by trying sudo apt-get install that didn't work. Downloaded from another source and tried tar -xjf mdk3-v6.tar.bz2 Keep getting ...
21
votes
2answers
18k views

Shell does not show typed in commands, “reset” works, but what happened?

My problem is that the Bash shell stops showing the characters I type into it. It does read the commands though. I've come across this problem quite a few times and I don't understand what causes it. ...
0
votes
2answers
419 views

Compiling objective c code, how to? [closed]

I am trying to compile a program using its source code and I am unable too and the problem seems to happen in the same folder in every ocurrance, and when I check the files, they are all objective c ...
1
vote
2answers
804 views

Is Ubucleaner script still a good idea?

I wonder to know if should I use ubucleaner script on Ubuntu Oneiric/Precise?
0
votes
2answers
1k views

How do I copy files that I just searched for via the command line?

Using Ubuntu 12.04 I need help on copying files that were returned from a search with grep . I have many pdf files, so to filter specific named files I am using General grep command as follows. ...
1
vote
1answer
8k views

convert .doc files to .pdf file using imagemagick

I want to convert .DOC files into .PDF format using php image library imagemagick . When I used convert filename.doc filename.pdf command in terminal to convert file to .PDF format I got the error ...
11
votes
3answers
23k views

How can I split the standard Ubuntu terminal?

I would like to have several terminals in the same window. I know I can have tabs, but with them we can't see two terminals at a time. I know Terminator is another terminal able to do this, but I ...
6
votes
5answers
17k views

How do I bypass the license page to download Oracle/Sun Java on a server with wget?

I'm trying to install Liferay on Ubuntu Server 12.04, which requires JRE and recommends version 6. I can't find JRE6 in an authoritative repository, and I can't work out how to get past the licence ...
1
vote
1answer
209 views

Reopen a closed GUI of a running program

When I use Truecrypt or Skype GUI and then (by mistake) push the X button to close it I can still see they are running (using ps-e). In the case with Skype I can even see I am logged in. If I try to ...
0
votes
0answers
18 views

Cinnamon Update does not work Ubuntu 12.04 [duplicate]

Possible Duplicate: Fixing “Could not get lock /var/lib/dpkg/lock” I used the following commands to install cinnamon: # sudo add-apt-repository ...
2
votes
1answer
163 views

How to install apt packages?

I'm running Ubuntu 11.04 machine. I had accidentally removed Python2.7.2 which I've sorted now, GUI is running and all other commands like easy_install, pip are working. But when I type any apt ...
1
vote
3answers
806 views

Trouble with aliases and opencv

I have an alias defined to compile an opencv program which goes like this alias gcv='g++ -I/usr/local/include/opencv -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_objdetect' Then I go on ...
2
votes
1answer
254 views

How can I make my system usable after modifying /usr/share/icons's permissions?

I'm running a duel boot/partition machine with Ubuntu 12.04 and Windows 7. On Ubuntu OS, I wanted to change the permissions in one of my directories so could extract files into that directory. In the ...
0
votes
2answers
707 views

How to rename and move thousands of files at once?

I have many files that i want to move into folders, their names are something like this dir1/dir2/dir3/name_of_file.ex and then maybe another is called /dir4/name_of_file2.xe Is there anyway of ...
1
vote
1answer
313 views

My ubuntu theme GNOME shell is broken?

Hello fellow Ubuntu users, I've ran in to a problem. I'm sorry if I'm not using the right therms, but it seems that the shell of my ubuntu is broken, I've lost the 3 graphic ways of (windows-buttons) ...
3
votes
2answers
2k views

Make terminal use pageup/pagedown instead of shift-pageup/shift-pagedown?

I've grown quite weary of shift-pgup to page up in gnome terminal, the command line, terminator, and guake, etc. Any way to easily make these apps use the straight page-up and page-down keys for ...
28
votes
4answers
38k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
4
votes
3answers
986 views

How to get graphical display when executing commands as another user, through terminal? [duplicate]

In my terminal, I did $su nextuser and logged in to that account. Now, when I try to open a text file in the home directory of that user by $gedit test.c I get No protocol specified Cannot ...
19
votes
1answer
27k views

How do I extract a specific file from a tar archive?

Hi is possible to restore a single file from the .tar backup ? I dont want to restore total backup . i just want to restore one single file from the backup .
1
vote
1answer
568 views

Can centerim support multiple jabber accounts?

I've been trying to use more CLI programs lately and have been messing around with centerim. After a bit of messing around I've successfully managed to get my google talk account working on it, but I ...
35
votes
3answers
328k views

How to start GUI from command line?

I've installed the following version of ubuntu om my machine. ubuntu-12.04-desktop-i386.iso But when I switch on the computer, I get command line. Ubuntu 12.04 LTS COMP-1245 tty1 Once I ...
1
vote
3answers
39k views

How do I list all storage devices (thumb drives/external hard drives) that are connected via USB, from the command line? [duplicate]

Possible Duplicate: How to detect an USB device? I would like to list ONLY devices connected via usb. The problem is that Ubuntu seems to see all thumb drives as removable (in ...
1
vote
2answers
1k views

How to configure the left mouse click to select only part of directory in terminal?

When I double click /This/is/a/directory it selects the whole string. It should only select the word I click. eg. if I double-click "This" then only "This" is selected. This is how Ubuntu used to ...
0
votes
2answers
863 views

compiz --replace not finishing

I read online, to check if your compiz is running correctly, you should type compiz --replace. I typed the command, and after it started, my screen flashed then disappeared then came back, and here ...
4
votes
3answers
4k views

Can someone spell out what this wget command to install Heroku toolbelt does?

I'm getting familiar with the terminal commands, and I came across this command to install the Heroku toolbelt: wget -qO- https://toolbelt.heroku.com/install.sh | sh Now from here I gather that ...
1
vote
2answers
4k views

edit ftp file via ubuntu terminal?

I'm connecting my website via $ ftp command. I want to edit some files via nano or gedit.But When I enter nano filename.php bash returns ?Invalid Command. How can i edit files via using ubuntu ...
1
vote
1answer
560 views

I cannot close terminal after updating my pc

I am a complete novice with Ubuntu. I have installed 12.04 and just run update from terminal. Now cannot exit terminal which appears every time I open my USer Account. I can use exit and Ctrl+D to ...
5
votes
3answers
1k views

Are there any tutorials and books to get accustomed to the terminal? [closed]

I want to use my Ubuntu computer with text-based system. But I can find only some tutorials. I need more tutorials and books.
7
votes
4answers
4k views

How can I have a shell for git like in Windows?

When I use Windows, the shell (even a standard Windows shell) shows basic information about the git repository when you are in a git repository. Things like the active branch and maybe some color ...
7
votes
4answers
14k views

Why can't I access super-user mode with su? [duplicate]

I just have managed to install Lubuntu 12.04. Now I want to do some things in the terminal like installing and configuring the Apache and a Lamp-system among other things. I come from Open SUSE world ...
31
votes
2answers
60k views

How to install all the boost development libraries?

I am having trouble installing boost library completely it fails/skips several things that seem to be key for me to continue on to compiling a program with it. Here is what I get when I install ...
3
votes
3answers
4k views

How do I run a script from within the vim editor?

When within vim (the editor I use mostly because of the terminal integration), I want to run my script (e.g. Python or Javascript) from within vim. I do not mind if it opens a new window, I would ...
4
votes
1answer
214 views

using pipe with bundle show and gnome-open

(I asked an almost identical question on stackoverflow with no response. Am hoping that ask ubuntu is a better spot for this and so am re-asking here.) I haven't used pipe much and am wondering if ...
5
votes
2answers
307 views

How to reject an EULA when installing packages with apt?

I wanted to install ubuntu-restricted-extras with apt, but they include ttf-mscorefonts-installer, for which I must accept an EULA license. I don’t want to, but I can't find a way to reject it. There ...
22
votes
2answers
4k views

How does Middle Click paste work?

I don't understand the middle click paste. Sometimes I highlight text, middle click in the window where I want it to go and it does what I want. Sometimes it doesn't. For instance, when I highlight ...
4
votes
2answers
4k views

Why can't I run any Android NDK commands?

I had been running Mint 12 before, and everything was working there. I switched to Ubuntu 12.04, and now I am very frustrated. When I run ndk-build, I get /home/buzz/ndk/prebuilt/linux-x86/bin/make: ...
0
votes
2answers
74 views

What do I do when I see this in Terminal? Please refer to picture in description [duplicate]

Possible Duplicate: How can I accept the agreement in a terminal, like for ttf-mscorefonts-installer? Well, I have been using the apt-get install command to download multiple piees of ...
3
votes
1answer
1k views

Embed terminal on desktop in Gnome 3.4

I'm wondering if it is possible to embed the terminal on the desktop under GNOME 3. 4. I would like it to be fully transparent, without any borders or shadows, basically to display just the text, even ...
6
votes
1answer
3k views

Open a new tab in gnome-terminal and have it automatically connect via ssh

I find myself ssh-ing into another machine a lot at work. So much so, that I use it more than simply using the terminal on my own desktop. I know that (normally) when I open a new tab, it will ...
2
votes
1answer
2k views

How can I recursively check folders with flac files for corruption?

Something caused to damage some of my flac files, and to find out which ones I need to rerip, I would like to get a list containing only the damaged files. How I do it now: Open a terminal in a ...
13
votes
4answers
25k views

Opening a file from terminal

When we want to open an application or file from the terminal, we type, say, okular file.dvi This opens the application, but also shows the status of the application. We cannot close the terminal, ...
0
votes
1answer
2k views

Why do I get the error: “No command 'update' found”?

I just have installed Ubuntu 10.10 , but when I enter update in the terminal I get this message : No command 'update' found, did you mean: Command 'uupdate' from package 'devscripts' (main) ...
1
vote
1answer
2k views

Recording Sound (playing from an external device) and save to my pc using line-in and line-out

I want to record and save say, music being played on my i-pod ,to my PC. Is this do-able? I was thinking if it can be done by connecting my i-pod's line-out to the line-in of my PC. If any CLI ...
2
votes
3answers
5k views

terminal window disappears after I minimize it

I just installed Ubuntu 12.04. I create a terminal using Ctrl+Alt+T, then I minimize it, and then I cannot find it anymore - not in the launcher, not in Alt+Tab. How can I return to my minimized ...