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

learn more… | top users | synonyms (6)

1
vote
0answers
20 views

Wireless hard switch is enabled, can i turn it off with a command? [duplicate]

Possible Duplicate: Is there a way to disable the hardware on/off switch for the Wireless interface? Rfkill list shows that the hard switch is on. My keyboard is broken and can't use FN + ...
0
votes
3answers
17k views

GUI for Ubuntu Server [duplicate]

Possible Duplicate: How to get a GUI environment with Ubuntu Server? I'd like to do some work with Ubuntu Server software. I'm familiar with Ubuntu Linux and have a fair bit of experience ...
5
votes
2answers
1k views

Source or dot operator overriding execute permission?

If I have turned off execute permissions on hello.sh and try to execute it ~$ sudo chmod 0666 hello.sh ~$ ./hello.sh -bash: ./hello.sh: Permission denied I get the permission error. But I can ...
3
votes
1answer
642 views

Command line method to find disk usage of camera mounted using gvfs

When my camera was mounted on /media I could use the standard tools (df) to see the disk usage of the card in my camera. However now the camera is mounted using gvfs, and df seems to ignore it. I've ...
3
votes
3answers
520 views

How to verify if a repository is already added

I have two repository that I want my script to verify if they are on the system. How can I verify by command line if a repository is already added to the system and, if not, add them?
3
votes
2answers
461 views

devnagari script in terminal

When I try to write in terminal in devnagari script, the vowels are shown separated from consonants (unlike how it is written). The same is the case when I open a file containing devnagari characters ...
2
votes
2answers
1k views

Bash: command not found

I have a script that needs to know the processor architecture. I'm doing this way: if [["$(uname -m)" = "x86_64"]]; then wget ...
6
votes
4answers
1k views

Reuse last line on terminal

When one issues a command that does not exist in the terminal, it results in: The program 'programname' is not installed. You can install it by typing: sudo apt-get install programname Is there ...
1
vote
1answer
90 views

Between SynPackManager, Update Manager, and apt-get, which is the healthiest for my system?

I've been bouncing a lot between a few different update methods to see which I prefer the most, and I was wondering which of these is the 'healthiest' for the system, or what your preferred update ...
0
votes
3answers
297 views

Extracting pure MPEG frames from MP3 from command line

Is there a way to extract actual audio frames from MP3? (Which means also the meta data tags gonna be cut off.) An imaginery command line: cat 1.mp3 | mpeg-frames-only > dump cat 1.mp3 | ...
4
votes
3answers
4k views

How do I increase the terminal border size in xfce?

The terminal (and other applications) borders seem to be only 1 pixel wide which makes them almost impossible to click. I am aware that alt+right click has the same function, but I need the borders ...
1
vote
1answer
1k views

How can I run a whois on an IP address?

So I'm looking at my sent traffic in iftop and I'm connected to an IP I don't recognise and I'm sending quite a bit of traffic their way. I'd like to work out where in the world this IP goes to. ...
5
votes
4answers
4k views

How to completely remove ALL flavours of Ubuntu from Ubuntu Studio

Er, this may be crazy, I installed all flavours of Ubuntu (Ubuntu Desktop, Kubuntu, Lubuntu, Edubuntu, Xubuntu, Mythbuntu) onto my computer. Now I want to completely remove ALL to get back my Ubuntu ...
0
votes
1answer
801 views

FVWM & FVWM-crystal installation on 12.04 Ubuntu Command-line-system

I'm not sure if this question should be asked here, in this forum. If it is not, I'm sorry and please refer me to any place where it's appropriate to ask. My question is: "How to install FVWM and ...
3
votes
1answer
636 views

Where can I find logs regarding the user creation?

I created a new user using useradd command. I need the logs for it. Where it will be available. Thanks in advance.
0
votes
1answer
115 views

Where I'm making the mistake in here document?

I read the use of here document. I tried something like this: echo $* <<End anto End What I'm trying here is, when I run this script rather than taking input from command line, I'm asking ...
0
votes
2answers
231 views

Blank terminal after removing “fortune cow”

After removing the "fortune cow" for terminal, I'm getting a blank terminal and can't actually do anything in it (I can write but I can't install, remove or update anything). Can someone help me?
10
votes
1answer
8k views

What is apt-cache used for?

Can anyone please define what exactly the APT cache is?
21
votes
5answers
34k views

How can I logout from the GUI using CLI?

I chose an Openbox DE at the time of login and the system took ages to load the DE. So I switched to CLI (Ctrl+Alt+F1) and rebooted my system (but I wanted to logout from the GUI and not restart the ...
7
votes
4answers
3k views

Script to Mute an Application

My goal is to be able to mute the Spotify application, not the entire system. Using the command: ps -C spotify -o pid= I am able to find the process ID of Spotify, in this case the ID is "22981". With ...
1
vote
1answer
2k views

Keyboard freezes in terminal after sudo

When entering sudo commands into the terminal on a regular install (i.e. not virtualbox), the terminal asks for password, but keyboard becomes unresponsive in terminal. It is fine in other ...
24
votes
5answers
183k views

How to find the Process ID (PID) of a running terminal program?

I am running a program in the terminal that I can't escape with Ctrl-C and that I want to kill. How can I find its PID?
4
votes
2answers
24k views

How can I search for files in all sub-directories using the shell and then copy those files?

How can I find just the *.mp3 files with a recursive command like ls -R *.mp3 in a directory that contains several sub-directories and at the end copy these files in a directory that I choose. Thanks ...
7
votes
3answers
5k views

Insert output of a system command at the current location in vim

In vim, when I use :r !ls somefilename it inserts output of that command on a new line below the current line. If I do let @a = system("ls") and later "ap it still inserts the output on a new ...
0
votes
1answer
194 views

how can I recursively set pemission to all sub directories of a directory specified?

with this command sudo chmod 777 /var/www/ I get 777 on www but not under www/subdir1/subdir2 how can I set all subdirectories recursively to 777 with one command?
2
votes
1answer
2k views

How do I *temporarily* change the *console* keymap to dvorak?

I type dvorak, but I don't like to confuse other users by having it be a system-wide default. I have a script that runs setxbmap dvorak that I can call when I want dvorak and likewise another script ...
0
votes
2answers
36k views

How do I use the “cd” command?

I am using Precise pangolin. So far as I know, commands like cd.. or cd- are used to browse through folders in the terminal. But whenever I enter one of this commands, it gives an error ...
2
votes
1answer
1k views

Problems with running .sh files

I am running Ubuntu 12.04 LTS and I can't seem to be able to run .sh files. I have marked it as executable in properties and I tried to run it through the GUI. However, the terminal just flashed on ...
4
votes
4answers
5k views

How To run Gedit and Subl commands in the background?

If I use Gedit or Subl (sublime text) commands in the terminal to open a file, I can't do anything else in the terminal until I close the text editor. How can I fix this?
0
votes
1answer
1k views

aptitude install apach derby ij

I see a similar question here: Question How do I connect to toursdb of Derby database using ij in Ubuntu How do I connect to toursdb of Derby database using ij in Ubuntu I have Ubuntu , I have ...
3
votes
1answer
2k views

What does ' (single quote) do in the terminal?

If I type ' (single quote, next to the <enter> button) in the terminal and then press enter it drops to a > prompt. What exactly is this, what's it used for, and what type of commands can I ...
3
votes
2answers
1k views

How to change the color of the “>>>” from python when running in terminal

I was wondering if there is a way of changing the color of the ">>>" characters at the beginning of a newline in python when accessed from Ubuntu's terminal. I already edited the ~/.bashrc to change ...
1
vote
1answer
67 views

How to install more than one package with only one command via Terminal?

I would like to do like on Synaptic - when you mark all the packages you want to install - and install all packages I want with a single command.
0
votes
1answer
1k views

Theming documentation for Gnome Shell

Does anything like this exist? i started modifying the gnome-shell.css file and noticed some none w3c standard attributes in there. Anyone know where i can find some info about it? Also is there an ...
1
vote
1answer
3k views

Eog random slideshow from the terminal

What is the best way to have Eye of Gnome Graphics viewer (EOG) open a folder full of images in a randomized slide-show from the terminal?
8
votes
1answer
15k views

How to add a program as startup application from terminal?

I am using ubuntu 12.04 and i know the GUI way to maintain the startup program list but now i want to find out the way to add/remove startup applications through Command Line Interface(CLI).
105
votes
6answers
187k views

How can I decode a base64 string from the command line?

I would like to write a bash script to decode a base64 string. For example I type decode QWxhZGRpbjpvcGVuIHNlc2FtZQ== and it prints Aladdin:open sesame and returns to the prompt. So far I have tried ...
57
votes
2answers
117k views

How to download an MP3 track from a YouTube video [duplicate]

Possible Duplicate: How to download a youtube video via terminal There are several Q&A threads that explain how to download youtube videos using the terminal. However, I would also ...
3
votes
1answer
383 views

Terminal stops every time a yes/no question appears

I have encountered a problem when using the terminal to install programs. Whenever a yes/no option like the one below appears, not just with this program, but with any I try, the terminal stops after ...
2
votes
1answer
944 views

How to cd to where I extracted a package, and run dpkg-deb -D?

I am following the step-by-step instructions on how to install ThinkPad Fan Control here but I could not get past this step (seen below): Open a terminal and run this command: Code: ...
1
vote
2answers
497 views

Dpkg error when trying to uninstall java

I have been trying to uninstall jre6 but I keep getting the error dpkg: warning: there's no installed package matching sun-java6-jre:amd64 I've tried sudo apt-get --purge remove sun-java6\* vim and ...
1
vote
1answer
360 views

Problems after running unity-reset

After installing compiz-config on Ubuntu 12.04, my whole desktop settings got disturbed. No window control buttons(min, max & close) and no window wobbling as earlier. So i executed the command ...
12
votes
3answers
21k views

Laptop USB ports stop working: how to restart them without restarting the PC? [duplicate]

Possible Duplicate: USB slots stop working suddenly from time to time The usb ports of my laptop fail for some reason from time to time. This concerns apparently mainly the external mouse ...
3
votes
1answer
774 views

Script to periodically open a file at certain intervals?

I would like to write a script that would open a excel file periodically after certain intervals. How do I do it?
2
votes
0answers
499 views

Unable to connect with wired connection in 12.04 [closed]

I am having a problem connecting to wired connection from router. I used to have 11.10 where I tried to establish DSL connection. I tried it doing through the terminal using some pppoeconf commands. ...
1
vote
0answers
50 views

Nothing works on the desktop screen after I tried to use the 3D cube settings [duplicate]

I am pretty new to 11.10. I was trying out some settings to operate the desktop in 3d cube mode that's when the unity bar, side bar disappeared. I have tried quite a few things to get it up and ...
4
votes
1answer
123 views

Upgrade tree to 1.6?

I'm trying to upgrade my version of tree to 1.6 on ubuntu 12.04. I've d'loaded, ran make and make install in the terminal using the sudo command. ~/tree-1.6.0$ sudo make make: Nothing to be done ...
4
votes
1answer
322 views

Is there a command like REISUB that only restarts X?

Is there a command like Ctrl + Alt + SysRq + R E I S U B that only restarts X - or drops down to shell (not a virtual console its broken)? Between Ubuntu, Unity/Gnome3, and the kernel ...
1
vote
1answer
396 views

Right way to colorize ls?

Sometimes ago, I used Ubuntu and had colorized ls, grep "out of the box". Now I install KUbuntu and ls is plain text by default. I tried to discover something about it and notice that there is ...
1
vote
0answers
2k views

I cannot install Synaptic Package Manager because of the following error

How do I go around this and install it? $ sudo apt-get install synaptic Reading package lists... Done Building dependency tree Reading state information... Done Package synaptic is not ...