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

learn more… | top users | synonyms (6)

0
votes
1answer
259 views

Can't find a program in either software centre or console, want to uninstall it (13.04)

(13.04) I downloaded and installed a program from the internet (.bundle), but it crashes every time I try to run it. I can't find it in the software centre It doesn't have an "uninstall" option in ...
0
votes
1answer
3k views

Some index files failed to download [duplicate]

When I ran sudo apt-get update then I found some error. The Error is like below: W: Failed to fetch cdrom://Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)/dists/raring/main/binary-amd64/...
46
votes
3answers
81k views

How to exclude multiple directories with rsync?

I am trying to backup my home directory using rsync, and I want to exclude some of the directories that contain junk. I want to specifically exclude /home/ben/.ccache and /home/ben/build. ...
0
votes
1answer
576 views

How to start a GUI application from the terminal and return immediately? [duplicate]

For example, if I type gimp in my terminal, Gimp will launch, but it will wait for gimp to be closed before returning control to the terminal. If I press CtrlC it will close Gimp. How do I prevent ...
0
votes
1answer
134 views

Why won't my script work?

umm my script isn't working and I don't know why, it gives me the error "update1.run: line 187: syntax error: unexpected end of file" Here's my code http://pastebin.com/4W4AwuY5 I would really ...
2
votes
4answers
3k views

Which Ubuntu version should I choose to learn UNIX/Linux commands, the desktop or the server version?

I am new to to Ubuntu and I wanna learn UNIX/Linux commands. For that which Ubuntu version is better to install desktop or server? Can I install server within Windows OS? Or try by live CD mode?
0
votes
2answers
402 views

cannot start application if not on correct path

I have the following app "System monitor indicator" and I want to make it start on boot up. So I am trying to find whats the name of the app to call it from the terminal, I find the "exe" at /usr/...
0
votes
2answers
3k views

Unfortunately Deleted /usr/bin/python

Unfortunately I deleted the /usr/bin/python in my ubuntu 12.04 I went to /usr/bin/ and run ls -al then I got lrwxrwxrwx 1 root root 64 Jul 13 14:58 python -> /Library/Frameworks/...
0
votes
1answer
118 views

Launcher and Panel do not start after booting to terminal

I did a fresh install of 13.04 and I wanted to boot straight into the terminal. So in the /etc/default/grub file, I changed the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to ...
1
vote
2answers
496 views

Always use `-P` flag with `cd` command

How can I set -P flag to every cd command? I do that every time. There are LS flag environment variable which I could use for ls command so I wonder can -P be set as default?
0
votes
1answer
95 views

lookup algorithm for finding a shell command

In my example, I am going to use the shell command "rake". What is the lookup sequence Ubuntu uses to find what to do when rake is invoked? e.g. does it look for a path specified in .bash_profile, ...
0
votes
1answer
2k views

how to add path to be used for terminal

I'm trying to add PHPUnit to the system path so that I can just use it from any terminal window. I installed PHPUnit using composer, then I added the following lines on the .bashrc file in the HOME ...
1
vote
1answer
277 views

Reboot from terminal waiting running apps to quit

Sometimes (~once in a month), my Ubuntu won't wake up from sleep correctly (it just shows black screen instead of asking for password). In these situations I go to first terminal (Ctrl+Alt+F1) and do "...
0
votes
1answer
7k views

How can I install a .deb file from command line? [duplicate]

I am running 13.04 and in terminal I am trying to install guitar pro 6 for linux as it will not install with Ubuntu software center. I am in the correct directory and if I ls the directory, I get GP6....
0
votes
1answer
357 views

Change the color of the terminal

Guys when I log in to Shell Prompt I want to change the text colors to green if its that possible? I do not have any idea about doing it.
6
votes
3answers
5k views

How to see the details which Ubuntu shows at the time of login anytime?

When I login to my ubuntu system, it show me this this message, How can I see it any time? I tried to run . .bashrc but it didn't worked. Welcome to Ubuntu 12.10 LTS (GNU/Linux 3.2.0-24-virtual ...
1
vote
4answers
7k views

Run .sh script on Ubuntu without using terminal

I'm using Ubuntu and I've created a simple script file: #!/bin/bash cp /home/guilherme/pictures/*.jpg /home/guilherme/backup When I run it on terminal typing the command "./script.sh" it works fine....
6
votes
1answer
461 views

Bind byobu window to Ctrl+Shift+T shortcut

Ctrl+Shift+T shortcut runs the gnome-terminal by default. I have installed byobu, and I want this shortcut to open the latest used byobu session. When pressed multiple times, I should still have just ...
3
votes
1answer
6k views

How to change to cd rom drive in terminal Ubuntu 13.04

How do you switch to the directory where the CD-ROM is? I am at name@name-virtualbox:-S
4
votes
3answers
15k views

What does the 'tail' command do?

I'm new to Ubuntu. I previously ran a tail -f /var/logs/syslog and get the following displayed results: kernel: [ 2609.699995] [drm:gen6_sanitize_pm] *ERROR* Power management discrepancy: ...
1
vote
1answer
156 views

How to install closed source software from command line

If I want to install restricted (closed source) software like Steam in Ubuntu, I have to use Software Centre. Is there anyway to install such software right from the command line?
5
votes
3answers
16k views

Combine multiple text files into one file

I am using the unix pr command to combine multiple text files into one text file: pr -F *files > newfile Each file is a different length, a different number of lines. I am mostly happy with the ...
2
votes
2answers
169 views

How do I log out specific sessions?

I have read this these generic instructions to log users out, but I want more detail. When I run the command users I see multiple instances of the same user. IE: Joe Joe Joe Joe Joe How do I know ...
2
votes
1answer
1k views

How to shut down the 70+ systems by the one remote machine?

What ways are there to shut down a computer remotely? My desktop is running Ubuntu 12.04 desktop edition and when I try to shut it down remotely, it doesn't actually work. I used the command sudo ...
1
vote
2answers
479 views

Disable desktop environemnts and customize startx

Is it possible to install ubuntu12.04 normally and then disable the desktop environments somehow, so that startx doesn't bring up unity or gdm or anything like that? I'm aware of ubuntu alternative ...
0
votes
1answer
53 views

Looking for non-gui utility application

I'm searching for application (if exists). It should appear after pressing previously customized keys, and will have non-gui (aka command shell) (but it should be have 'buttons' like in GRUB 2), it ...
1
vote
1answer
765 views

“load” a URL in terminal

I put "load" in quotes because I'm not trying to open up a website via terminal. I have a PHP script on a web server that logs to a text file when it has been loaded. I'd like to set up a cron on a ...
29
votes
3answers
69k views

Generate md5 checksum for all files in a directory

I would like to create a md5 checksum list for all files in a directory. I want to cat filename | md5sum > ouptput.txt. I want to do this in 1 step for all files in my directory. Any assistance ...
-1
votes
1answer
1k views

Run shell commands from browser [closed]

I'd like to access the terminal from Firefox specifically. I only have access to firefox, I can't access terminal on its own.
6
votes
2answers
9k views

wait for dd command to fully write to the disk

I'm using the dd command to create a bootable usb from iso file: sudo dd if=~/Desktop/ubuntu.iso of=/dev/sdx bs=1M After pressing enter it momentarily exits and gives me: 915+0 records in 915+0 ...
0
votes
1answer
52 views

what problem should/can I solve first?

I am currently running Ubuntu 13.04 x64 with brand new hard drive to replace a damaged component, on my 17.5 inch wide screen gateway laptop with mostly after market components. can not remember the ...
3
votes
1answer
589 views

Is it possible to make the text in terminal invisible?

I would like to know to make the text in terminal invisible. That's it just to make it invisible, not to change it's color to hide it with the back ground, but completely invisible. Thanks
6
votes
3answers
343 views

Using popd without removing last value

How can I get the behavior of using popd without actually popping the last directory off of the stack? In other words, I want to navigate back to the last directory that I set with pushd, but I want ...
1
vote
1answer
52 views

Opening two applications with single click?

I want to open firefox with few websites and eclipse with single click of .sh file. I am trying the following command: eclipse firefox http://localhost/wp3.5.2/ http://localhost/wp2/ They work ...
1
vote
2answers
706 views

Command for opening application using java through terminal?

I downloaded Tomighty(pomodoro app) on my Ubuntu 12.04. Everytime i have to start tomighty, i have to right click on the tomighty's jar file and click on open with sun java 7. is there any command ...
3
votes
1answer
9k views

How to download a .tar.gz file from a redirected link in terminal?

I want to download the file at http://www.snort.org/downloads/1806 as a .tar.gz file using terminal but the problem is that when I use: sudo wget http://www.snort.org/downloads/1806 It downloads a ...
1
vote
2answers
10k views

Xubuntu 13.04 boots to command line instead of GUI. How to get back GUI?

I have Xubuntu 13.04 on my desktop as a dual-boot system with XP. Installed it at first time two days ago and suddenly got this problem. Write my question from good old troubleproof Windows XP (long ...
0
votes
1answer
64 views

Controlling a loop and saving the output for each event

How can I control a loop and read live feed from a usb port and save each of the output when the usb is inserted or removed. I know the code below can be improved, please assist. #!/bin/bash time=$(...
1
vote
1answer
2k views

Fern-wifi-cracker won't install

So i tried to install Fern wifi cracker but it won't let me install it and i get this; root@john:~/Desktop# dpkg -i Fern-Wifi-Cracker_1.6_all.deb Selecting previously unselected package fern-wifi-...
0
votes
1answer
57 views

Updateing package by sudo command in 13.04

I used the sudo command in terminal to update the software after upgrading from 12.10 to 13.04 and it gave me this error: Errors were encountered while processing: /var/cache/apt/archives/ubuntu-...
1
vote
1answer
3k views

How to colorize Xubuntu13.04 terminal? [duplicate]

On some pictures from the Internet there are colors in terminal. Even Cygwin under Windows has colors in its terminal. Here a pic from the Internet, for example: I have installed Xubuntu and my ...
0
votes
1answer
299 views

How do I add a custom color to this script?

This is the script. Does anyone know how I can change the color of the text so when I open it in terminal it changes the color? #!/usr/bin/expect -f spawn -noecho bash expect "$ " send "put what ...
1
vote
2answers
14k views

Stuck on “waiting for apt-get to exit” in Software Centre [duplicate]

I'm trying to download something, and it's stuck on "waiting for apt-get to exit". Also, when I'm trying to use the terminal it says "unable to lock the administration directory" after I type in a ...
2
votes
1answer
640 views

How to run specific commands without to press enter key

How can I run a specific command in terminal without to press Enter key after I typed the command?
4
votes
1answer
994 views

Arrow keys in Terminal shortcut don't work

I am new to Linux and am using Ubuntu 13.04. I have a C++ program named "dictionary" (full path: /home/anmol/Desktop/c++/dictionary), which I compiled with Code::Blocks IDE (and GCC version 4.7.3). ...
0
votes
0answers
36 views

what does this command do, and should i execute it from terminal? [duplicate]

The command is in the following quotations :(){ :|: & };:. I have a bunch of questions. What does it do? Is it harmful? What is it, anyway? How does it work? What should I know about it? What ...
0
votes
1answer
190 views

How can i become root at all times in terminal

I want to know how i can become root at all times in terminal without having to type in my password or typing sudo. Thanks :D
2
votes
1answer
94 views

how to make it to start up like this 'john@john:~/Desktop$ blah blah blah [duplicate]

When I start the Terminal I want it to start up like this john@john:~/Desktop$ blah blah blah without executing the command so I tried to do this sh -c "cd ~/Desktop;blah blah blah; exec bash" but it ...
2
votes
1answer
1k views

How do i start terminal in desktop

So in Terminal I created a new profile and I wanted it to start up to the desktop directory so I can just enter the filename I wanted to run instead of typing cd Desktop. So this is what i did: Edit -...
13
votes
4answers
12k views

How do I set the prompt to use two colors?

One thing I liked about Mint was that the terminal would usually show two colors: everything from the left to the $ would be one color, and everything past the $ would be another. Is there a way to ...