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

learn more… | top users | synonyms (5)

4
votes
1answer
1k views

How do I start in CLI mode using a special boot parameter for the Live CD?

Sometimes, I need to test some CLI programs without touching my real installation. For that purpose, I use a Virtual Machine running off a Live CD. Now, I don't need a full-blown user-friendly ...
28
votes
5answers
79k views

How can I make a script that opens terminal windows and executes commands in them?

I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment. To do that, I manually open three terminals and type in the commands. ...
5
votes
2answers
6k views

Is there a command for the “Workspace Switcher”?

I just learned about "whereis" in terminal as a way to find a command to launch a given application. However, I still can't find (a way to find) the command to launch the "Workspace Switcher" in natty ...
0
votes
1answer
426 views

I have a problem while trying to execute a command with params via Java runtime

I'm working on a Java desktop aplication to manage iptables and i want to execute iptables commands via Java, this is what i am doing: i execute from terminal gksu "iptables -L" and it worked but ...
3
votes
2answers
529 views

Why does 11.04 boot so slow on my system?

I downloaded Ubuntu 11.04 and it was working fine until I started tweaking compiz and rebooted. It took 3 to 4 minutes to boot up. When I press enter at the boot menu, there is a black screen with ...
7
votes
2answers
2k views

How can I create a a playlist file of all of the mp3s in the current directory from the terminal?

I'm looking for a solution to this or a recommendation for a program to check out. I'd appreciate any help. Update I would like to use the playlist file with PowerAMP for android.
0
votes
1answer
1k views

Remove all borders and tab bars from Yakuake?

machine: kubuntu 11.04x64 w/ kde4 the top terminal is of Yakuake w/ "No Border" option already enabled the bottom is of Konsole w/ "No Border" option also enabled how do I remove all borders ...
9
votes
0answers
2k views

How can I run program from terminal without killing the program when closing the terminal [duplicate]

Possible Duplicate: How to clean launch a GUI app via the Terminal (so it doesn't wait for termination)? Tho whole problem is that if I run a program from Gnome Terminal(e.g. gedit ...
1
vote
2answers
1k views

How do I find a string (and some lines before and after) in a huge file by terminal?

I want to display three or four lines before and after a certain string in a really huge file, which I can' topen with vi. How is this done? I tryed grep -i -n -r 'mysearchstring' but this only ...
2
votes
3answers
2k views

Terminator command history

I have been looking into this - but I can't get previous entered commands in Terminator (multi-terminal). I have looked into the Preference but I don't see how it is done. I know this is not really ...
0
votes
1answer
2k views

How can I stop a terminal connection from timing out

At work I have two machines: Windows XP and Ubuntu 11.04. On my XP machine I use Putty to connect to some servers and can leave those windows open for weekends without them timing out. However, when ...
1
vote
3answers
5k views

Command line ifconfig problems - Not detecting all NICs

I am in the command line of Ubuntu server edition 10.04 and I have 3 Nic cards installed. When I type ifconfig it only detects one: Eth0. I tried doing sudo apt-get update, this did not work. Any ...
4
votes
1answer
909 views

Is there a way to left-click links in gnome-terminal or am I out of luck?

I'm using irssi hosted on a remote computer for IRC, and it'd be super helpful not to have to hold Control or right-click every single link (so I can avoid multiple clicks or multiple hands). At this ...
35
votes
4answers
14k views

How to navigate long commands faster?

Is there a way speed up Linux CLI navigation when I must enter long commands? I simply use arrows right now, and - if I have a long command it takes some time to get from start of the command to the ...
3
votes
3answers
3k views

How to run a program for a fixed period of time?

I am looking for a method built-in to ubuntu that will allow me to run a script or program or whatever for a fixed period of time. I found a program that does this in a way I like, but the package is ...
3
votes
2answers
3k views

How should I specify command-line arguments for MongoDB?

MongoDB has instructed me to change its command-line arguments: REST is not enabled. use --rest to turn on. but this is all I know how to do: sudo service mongodb start Where should I apply ...
4
votes
2answers
2k views

How to copy one file to multiple filenames?

The command touch {jan,feb,mar}-{Rep.xls,graph.xls} creates files I can't open: feb-graph.xls jan-Rep.xls feb-Rep.xls mar-graph.xls jan-graph.xls mar-Rep.xls So I created one template file 1.ods, ...
10
votes
1answer
12k views

How do I use bold font in terminal? (echo/cat)

How can I make some output bold in Ubuntu terminal echo "text bold text" text bold text or the same from cat my_file
9
votes
2answers
2k views

Mount drive through command line (as if I clicked on it in nautilus)

I'm writing a backup script in which I need to mount a drive in the media bay of my laptop. I know that I can get the job done by messing with fstab and the mount command. Perhaps that's the easiest ...
2
votes
1answer
453 views

Terminal: Open multiple profiles in tabs

I have terminal connections to various systems available from the Terminal if I use File->Tab->(system name). Sometimes I want to open a certain set of systems in tabs. Is there a command I can use ...
12
votes
3answers
29k views

Disable sudo permission to user from command line

I have activated root user in ubuntu and want to use ubuntu as server with no DE. For this I want to disable sudo privilege given to first user. How can I do this from command line ? I know I can use ...
10
votes
0answers
5k views

How to run .desktop files from command line [duplicate]

I am configuring a box with openbox (with GNOME under the scenes), and I want to run the .desktop files in /etc/xdg/autostart/ from a script at login. But xdg-open and gnome-open do not seem to do ...
2
votes
2answers
977 views

Using the terminal to update Twitter

Trying to update twitter using the terminal. curl and wget codes I have found are not working, it looks like Twitter has updated the way it authenticates, is it still possible to update Twitter from ...
2
votes
1answer
10k views

Copy & Paste a file utility for terminal

I primarily use the terminal for file management and day-to-day tasks on my computer. There is one feature that I miss consistently and that is a copy/cut and paste for files (not clipboard text). ...
4
votes
2answers
1k views

How to bulk rename files after modification date?

I've got some photos with quite random names, but the dates (not exif, but when they were last edited) are correct. I'd like to rename them in that order, preferably so that the first photo is named ...
7
votes
5answers
46k views

Can't execute .out files, getting permission denied

I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use ...
3
votes
1answer
590 views

persistent notification for Unity launcher icons

I was delighted to learn about the demands_attention flag as explained here: Is there any way to initiate "urgent animation" of an icon on the Unity launcher from command line? However, ...
1
vote
1answer
252 views

Piping command output to an Empathy chat window

This isn't Ubuntu-specific, but since Empathy is the default IM client on Ubuntu, I thought this would be a good place to ask. I have a script that pulls current weather info from Google's weather ...
0
votes
3answers
11k views

How to install packages in terminal [duplicate]

Possible Duplicate: Can you install a .deb file via the command line? I have packages that I have downloaded from the internet and for some reason they won't install inside of ubuntu ...
25
votes
12answers
18k views

Command line audio players

What are popular audio players for the command line? How to play a single sound file? Are there command line players that also index the music library like Banshee, Exaile, etc.?
2
votes
2answers
960 views

Pink Screen on GRUB Boot [closed]

When I boot Ubuntu 11.04, GRUB shows me a nice, blank pink screen, until most of the OS is loaded, after which I can see some output text. I can't fix it unless I switch to console mode instead of ...
6
votes
3answers
14k views

How can I direct a pipe input to ls command?

When I type sth. like that find . -name *foo* | ls -lah it gives me a ls-output of 'pwd' like I had no file(s) given to 'ls'. To simply use ls -lah $( find . -name *foo* ) works well (when the ...
7
votes
1answer
9k views

Disable auto-login from the CLI

After successfully installing Ubuntu and logging in to the Unity desktop, I followed the prompts to enable the proprietary display drivers. After rebooting, the Unity desktop is now entirely ...
8
votes
5answers
2k views

How can I modify my `ls` command?

When I type ls, i get the normal list, or when I type ls -la I get a details version with everything... But I hate the layout of ls, it's just unintuitive for most of my use. Is there some way I can ...
4
votes
2answers
3k views

How to recall history in teminal

I installed Ubuntu 10.10 yesterday. Then while using the terminal I noticed that once I quit a terminal session its history is gone, although history exists for applications in terminal ...
4
votes
2answers
2k views

How can I disable Caps Lock on text-mode (tty) terminals?

I have disabled caps lock in Ubuntu via the System Settings -> Keyboard panel (see How to programmatically swap the caps lock and esc keys? on how to find this option), however when I switch to a ...
5
votes
3answers
380 views

Bash cannot expand backticks interactively

On RHEL5.2 (bash 2.3.25) I can cd `pwd`/[TAB] and pwd is substituted into my current working directory, using the output of pwd(1). How can I achieve the same functionality in Ubuntu 9.10 (bash ...
6
votes
1answer
11k views

How can I export MySQL database manually - without phpmyadmin [closed]

My phpmyadmin doesn't work, i see only white blank page when i open it(it's has some issue), However, I'd like to export my project databased manually to another computer. i saw all my databases ...
5
votes
1answer
2k views

How to find run time of a program from commmand line?

I just ran a program and wish to know how much time it took to execute it. How do I do it?
0
votes
1answer
179 views

Nautilus “open in remote teminal” fails after login

I have installed open-in-erminal package and now I have "Open in Terminal" and "Open in Remote Terminal" in right click menu in Nautilus. First one works perfect, but remote does not. It opens ...
18
votes
3answers
7k views

How to list packages from a ppa/source in command line?

I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that? dpkg --list lists all files or just the filename.
6
votes
7answers
488 views

How to find the command of an installed application?

I have an installed application, but I don't know its name. (By "name" I mean what I would type in a command line.) Is there any way to see this? It seems so obvious, but I can't figure it out.
1
vote
1answer
1k views

Is there a way to shutdown the X display?

I know about startx, but is there a command that stops X? I run Ubuntu 10.04.
7
votes
2answers
6k views

What if I don't have a bashrc?

Will I be able to login? What havoc will it cause, if any? How will it mess up m terminal? There are login and non-login terminals too. How will it affect those?
66
votes
9answers
173k views

How to open a PDF file from terminal?

I used to work on the Mac terminal before and I used: open file2open.pdf and the PDF file would be opened on preview or whatever my default viewer was. When I use it in the terminal in Ubuntu I ...
6
votes
1answer
578 views

GUI for configure -> make -> make install

I found a KDE gui for the configure -> make -> make install routine, kconfigure. But, I did not try it out, since the project was last active in 2005. Is there a gui for the same for Ubuntu. I know ...
9
votes
7answers
28k views

How do I open multiple terminals?

I just downloaded Ubuntu 11.04 and as far as I can remember, there was the option of opening multiple terminals in tabs in Ubuntu. I cannot discover this feature in 11.04. Also, as a general query, ...
2
votes
2answers
219 views

Google Video Command Line Download

Is there a way to download the original (FLV) video files from Google Video from the command line, just like YouTube?
2
votes
1answer
161 views

Displex terminal path issue

I last installed displex from here: http://sourceforge.net/projects/displex/files/ Since then I've been having a small problem with my terminal. Each time I open my terminal while displex is running ...
-3
votes
1answer
2k views

make command not work - Assembler messages [duplicate]

Possible Duplicate: I can't install Thunderbird *whats this message? user1@ubuntu:~$ make KBUILD_NOPEDANTIC=1 make -C /lib/modules/uname -r/build M=pwd make[1]: Entering directory ...