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

learn more… | top users | synonyms (6)

5
votes
0answers
5k views

Where can I set the default terminal emulator? [duplicate]

GNOME Terminal shows up in several places: launchers which start terminal commands the Launch Terminal keyboard shortcut the menu items added by nautilus-open-terminal Does each of these ...
24
votes
9answers
73k views

How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash?

Is there a command to remove all files and subdirectories in a directory WITHOUT deleting the directory? For example if I have directory "dontDeleteMe" with subdirectories "1", "2", "3" and each ...
6
votes
1answer
8k views

How to allow execution without using the sudo?

I am writing a Java application where i need to do a command line execution and get a result back, but when i execute the command, it ask for sudo password. So far i tried: $ sudo -s $ vim ...
0
votes
2answers
2k views

Recover xorg.conf from read only terminal

After changes in my xorg.conf, i can not restart X anymore. So on Grub i choose , limited vodeo mode, then "root prompt". Though it seems to be a read only access, so i can not replace my current ...
13
votes
6answers
7k views

Why are letters overlapping in the terminal?

I installed Oneiric as a guest OS in VirtualBox using the Mini CD. I installed the ubuntu-desktop package and everything seems to work fine - well, except for a font issue with the terminal: As you ...
11
votes
3answers
3k views

Command to determine whether Ubuntu is running in a virtual machine?

Is there a command or tool that can be used to determine whether Ubuntu is running as a guest within a virtualization program such as VirtualBox or Qemu or whether it is running on the bare metal?
6
votes
3answers
1k views

How do I inhibit suspend from the command line?

Is there a way to inhibit suspend/hibernate from the command line. I want to ssh into my home computer and not have it suspend while I'm working on it.
3
votes
2answers
4k views

CanoScan LiDE 110 driver for Ubuntu? How to scan via command line?

CanoScan LiDE 110 is connected to my Ubuntu 11.04. I need to scan remotely using the command line. How can I use the scanner from the command line? Tried/Failed/Succeed: $ apt-get install sane ...
4
votes
0answers
2k views

Terminal randomly disappears from Alt-Tab list, Unity launcher. [closed]

I like the terminal, it's handy to have open but this happens eveytime: open terminal type something in it switch to another program terminal is closed :-/ This happens even if I just type ...
3
votes
4answers
2k views

How to select and copy content from the terminal (ATL + CTRL + F1)

When in the 'lower level terminal' (not sure how this is called), the one opened by pressing Ctrl + Alt + F1, how can I copy the content of the command I used there, since there is no mouse and I can ...
8
votes
5answers
4k views

The GNOME Terminal is very slow in GNOME 3

When using the GNOME Terminal, if I try to create a new tab, or use "C+tab" to cycle to a new one, the terminal will take up to five full seconds to change. This seems to occur whether using ZSH or ...
1
vote
5answers
341 views

How do I boot into a basic graphics view?

How do I start a session that will give me he very basic graphics or even just terminal view? I would like to start applications just by typing their name. I would like to avoid the gui stuff as much ...
6
votes
4answers
13k views

What is the “yes” command?

I issued a command in the Ubuntu terminal that required me to type yes but I discovered that it only asks me the first time, but I had already pressed enter before I realized. So I expected a ...
3
votes
0answers
1k views

How can I enable mouse wheel scroll in 'less' in lxterminal? [closed]

In Lubuntu 11.10, when I use the 'less' pager in lxterminal, the mouse scroll wheel has no effect. In gnome-terminal, it scrolls the text up or down when viewing a file with 'less'. Is there anyway ...
2
votes
1answer
1k views

Issue with Terminal After Ubuntu 11.10 Install

When I try to install a program in terminal it runs for a while and then a box come up that says "Configuring ttf-mscorefonts-installer" and asks me to hit 'OK'. But I cannot hit 'OK' or make the box ...
7
votes
5answers
447 views

Is there a terminal logout that does something like what GNU Screen does?

As most of you know GNU Screen is a nice tool that enables you to do something like: One other good use for the detach and reattach is as a console-mode "remote desktop" feature. You can detach ...
0
votes
1answer
89 views

What does happens when you type set in terminal

I wanted to see if set does mean something and I typed it in terminal and after that I got huge code which doesn't even fit in my screen. So I wanted to ask what does it do? I hope I didn't broke ...
0
votes
2answers
432 views

Opening terminal takes longer while using Gnome Shell

In ubuntu 11.04, loading the terminal with a keyboard shortcut was really quick. When I started using ubuntu 11.10 (with unity) I noticed it took a little while. Then I remembered about the preload ...
2
votes
4answers
28k views

How to start an application from the terminal?

I'm getting started on the Ubuntu terminal. How can I start an application (for example, CompizConfig Settings Manager) from the terminal? Which command do I have to use?
2
votes
1answer
144 views

Help convert console command to right-click command

I use this console command to automatically send all files in some directory to the JAR file, catch the output of that JAR file and finally create new files from the output. Here is the command for i ...
18
votes
4answers
3k views

how to get bash to stop escaping $ during tab-completion?

I have this on the command line: ln -sf $PWD/wine- and then I hit tab to complete the filename. In earlier versions of Ubuntu, this worked just fine to complete the wine- filename (and as a ...
74
votes
11answers
44k views

How can I set default terminal used in Unity?

How can I set the default terminal used in Unity? I would like to use the Ctrl+Alt+T hotkey to start a non-default terminal. The default terminal is gnome-terminal. Where can I change the default ...
1
vote
1answer
200 views

Is there a command to print all the terminal processes run by a user?

I know that # ps -u someUser will print the terminal processes currently being run by a user. Is there a way to get all of the past terminal processes that user ever ran when you're logged in as ...
3
votes
2answers
464 views

How to change the login notice on a custom shell?

I was trying to setup a custom shell for a temp user. sudo usermod --shell /home/nemo/a temp The contents of a: #!/bin/bash echo "Test" Unfortunately, on trying to login as user temp, I see ...
4
votes
1answer
717 views

Why does $ service --status-all output to STDERR instead of STDIN?

This is very unintuitive. e.g. When a user tries to: # service --status-all | grep postgres This won't work... The only way to grep `service' is: # service --status-all 2>&1 | grep ...
6
votes
4answers
2k views

script to swap two files

one thing that always drove me crazy is the need to do mv file1 tmp mv file2 file1 mv tmp file2 in oder to swap 2 filenames. what do you guys use to swap 2 files? Are there any standard script ...
4
votes
3answers
2k views

How to boot directly into a shell?

I am using Ubuntu 11.10 (Unity) as Guest/Host using VirtualBox. I don't want a Unity on login and want to directly get to a shell in the Guest after the boot. What changes have to be done?
0
votes
1answer
305 views

Unity desktop and mouse sensitivity [duplicate]

Possible Duplicate: Only show Unity laucher when left cmd/win key is pressed? I keep accidentally moving the mouse too far to the left of the screen which brings up the unity "taskbar". Is ...
93
votes
14answers
133k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal
3
votes
2answers
16k views

How to change xorg.conf file with permission?

I want to edit the /etc/X11/xorg.conf file but I can't save the file. It says "permission denied." How can I edit the file?
3
votes
2answers
6k views

tilde and double quote keys don't work on the command line

I've just installed Ubuntu Server 11.10 and the tilde (~) and double quotes (") keys don't do anything - they don't print to the screen. I'm only using the command line (no GUI) and many tutorials say ...
0
votes
2answers
84 views

Install an application so that it can be launched from the terminal

I had to update my Firefox from ver 3 (i.e. the one that Ubuntu 10.04 ships with) and move it to Firefox 7. So firefox gave a tar.gz file to extract the browser from. I ran sudo apt-get remove ...
4
votes
4answers
1k views

How can I send current line in gedit to terminal?

When editing shell file in gedit, is there a way I could send current line (or selected block?) to terminal? When learning Python I use Spyder IDE. It has an option to execute code selection or block ...
19
votes
1answer
8k views

What can I use instead of gnome-open?

What is a current replacement of 'gnome-open' command (generic open of files based on the type)? Before: gnome-open mydoc.pdf # opened PDF in default application Now: gnome-open The program ...
3
votes
0answers
2k views

Graphics Card Problems with Lenovo ideapad Z570 w/ Nvidia 520m [duplicate]

Possible Duplicate: How well do laptops with Nvidia Optimus work? My lenovo Z570 have 2 Graphic cards Intel HD and Nvidia 520m. In Ubuntu 11.04 I used wobbly windows which but now in 11.10 ...
3
votes
0answers
609 views

How can I get Ctrl+Alt+F* working?| Why runlevel doesn't starts automatically? [closed]

I googled many threads on my problem, but most of them are about proprietary drivers and black screen (although user can login blindly into tty*). My question isn't about that type of problem but the ...
3
votes
2answers
2k views

How to install a list of programs in a .txt file automatically through a terminal

I'm sure I've seen instructions on how do do this unfortunately it was a few months ago and have forgotten them. Thanks in advance to anyone who answers.
3
votes
3answers
5k views

gpgkeys: key C927EBE00F1B0520 not found on keyserver [duplicate]

Possible Duplicate: How do I fix the GPG error “NO_PUBKEY”? I am using 10.04 LTS - the Lucid Lynx, I shutdown the computer while one software updates running. Then after i ...
2
votes
2answers
992 views

How to change the constrast on ubuntu with terminal or using a KDE tool?

I would like change the contrast and not only the brightness. My brightness can be ajusted in KDE using my Fn key, but I would like do it with the contrast too. Some commands works like xbacklight ...
2
votes
2answers
2k views

Is there any way to specify which workspace and/or window to launch a program into?

I asked a related, but more specific, question here. I want to know if there is a way to specify where you want a program to launch. I basically want to write a shell script which is launched every ...
3
votes
1answer
690 views

How do I change the window titles (as used by wmctrl)

I am using wmctrl to move applications after I have launched them such that I do not have to do this manually for, for example, several text editors and web browsers and pdf viewers and terminals. I ...
3
votes
4answers
10k views

Get todays date and use it in filename

Using the command-line, I want to create a log file with today's date in the name (for example, today is 05/17/2011, so the filename would have to be log051711). I know how to create the file (touch ...
2
votes
2answers
6k views

Disable ATI Proprietary drivers by command line?

I've made the mistake of installing the ATI proprietary driver by command line. Steps i took: Downloaded linux drivers Opened the terminal sh amd..driver.run Followed the steps Rebooted This has ...
3
votes
2answers
404 views

Gnome 3 Shell suspend has me locked out of my computer

From Ubuntu 11.10, I installed Gnome 3 Shell on my desktop computer. I studied it for a while, and then looked for the button to close the shell, but found only a suspend button. I clicked it and it ...
0
votes
2answers
684 views

How to transfer the whole contents of a folder (recursively) from one server to another?

I have a /home/jbruni folder in a VPS running Ubuntu Server 10.04 LTS (Lucid Lynx). I am about to turn this VPS off and move some things from it to a new VPS, also running the same Ubuntu version. ...
2
votes
1answer
1k views

Problem to write long lines in terminal

I have defined a PS1 prompt multi-line in my server with Ubuntu 11.04. The problem occurs when I write a long command, the line cuts before the end of terminal and it continues at beginning the same ...
12
votes
3answers
11k views

How do I disable a touchpad using the command line?

Is there a way to disable a touchpad using a terminal command?
1
vote
2answers
1k views

Command at startup or login

I would like to run the following command after every boot (or login). echo OFF > /sys/kernel/debug/vgaswitcheroo/switch It turns off my discrete GPU. To what script should I add this command. I ...
28
votes
4answers
27k views

Make gedit embedded terminal colours the same as the default terminal

I've just updated to 11.10 and now my embedded terminal in gedit does not match my default terminal. I hate looking at a white and black terminal. Does anyone know how to make the embedded terminal ...
1
vote
1answer
3k views

Why does dhclient <interface> return a services related message?

I'm trying to use dhclient to set up a tether with dhclient, which worked in 11.04. However, upon upgrading to 11.10, I get the following message when trying to use it. Rather than invoking init ...