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

learn more… | top users | synonyms (6)

3
votes
2answers
1k views

Command Line disc burning: growisofs fails to write DVD

I've successfully burned CDs from .iso images with wodim, but using this: growisofs -dvd-compat -Z /dev/sg1=ImageToBurn.iso fails with: Executing 'builtin_dd if=ImageToBurn.iso of=/dev/sg1 obs=32k ...
6
votes
2answers
3k views

dircolors/ls colors not being displayed correctly using byobu

On my NAS box running Ubuntu 11.04 I'm experiencing an odd issue with dircolors inside byobu. Per the image below, everything works fine outside byobu. The prompt (zsh), vim, and everything else works ...
2
votes
2answers
4k views

Hosting a Website with Ubuntu Server 11.04

Was a tie between here and Server Fault, and I decided that it belongs more here. Anyway, I am seeking to host a website on my computer using Ubuntu Server 11.04. I've got just a few questions. ...
6
votes
4answers
6k views

Is it possible to use nmcli completely without nm-applet?

Since I don't use GNOME now and try wmii, the nm-applet is no longer available for me.I know there is nmcli for the control. What I'm really interested in is that can it really be a substitute for ...
3
votes
1answer
785 views

How do I get Guake(terminal) to report the correct terminal?

I've been using Guake on my laptop and my desktop and everything has been fine until I recently bought a new HD and did a fresh install of Ubuntu 10.10. I installed Guake and it works fine except for ...
9
votes
3answers
13k views

Executing .bat file

I have a setup.bat file which install some applications and i want to execute it. This is content of .bat file : @echo off cls Rip_7z.exe x Rip0.7z cls del Rip0.7z cls Rip_7z.exe x Rip1.7z cls del ...
0
votes
1answer
97 views

Color-leveling an image via command-line

From a script, I'm trying to apply some color levels to a grayscale .tiff image (the same as I would do in Gimp). I've tried using ImageMagick's convert tool: convert input.tiff -level 102,200,0.85 ...
28
votes
4answers
151k views

How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I ...
5
votes
4answers
4k views

How to fix strange backspace behaviour with urxvt + zsh?

I use urxvt in combination with zsh. However since my fresh install of ubuntu 10.04 I have the following problem. If I type backspace the cursor moves to the right (instead of deleting the characters ...
4
votes
2answers
173 views

How can I create something similar to an alias, that does properly expand to the initial command?

I have set up aliases for apt-get update, apt-get install, and so on. Thats quite convenient. But what I really would like to have is something like this: type agi TAB vi and have it automatically ...
56
votes
6answers
61k views

How to get the MD5 hash of a string directly in the terminal?

How do I get the MD5 hash of a string directly from the terminal? For example, I want the string abcdefg hashed. Currently the md5sum command only accepts a filename as input. I want to simply enter ...
3
votes
2answers
593 views

How to set terminal tab titles font size?

I constantly get to a situation where my 1-2 character tab titles are cut, as I have over 20 tabs open. One way to solve my problem, would be to decrease the font size of the tab titles. Any idea how ...
14
votes
5answers
8k views

How can I encode and decode percent-encoded strings on the command line?

How can I encode and decode percent-encoded (URL encoded) strings on the command line? I'm looking for a solution that can do this: $ percent-encode "ændrük" %C3%A6ndr%C3%BCk $ percent-decode ...
3
votes
3answers
6k views

Bash Script: catching errors in a block of statements

I have a large iptables ruleset that I manage with my own bash script. Most of the commands in the script are simple, single-statment iptables commands. I am trying to improve the script by adding ...
13
votes
4answers
1k views

Why does nothing happen when I click “Shutdown” from the “shutdown…” dialog?

I've been through all questions with the 'Shutdown' tag on this site - but this is different. I choose "Shutdown..." from the session menu. I then click "Shutdown" on the dialog that appears. ...
1
vote
3answers
2k views

What's a good way to reinstall (from the command line)?

After having these issues: How do I fix broken installation? ... I've decided to reinstall Ubuntu (11.04). I need to do so from the command line. And, while I am reinstalling to clean up and solve ...
4
votes
2answers
165 views

How to organize a block of text in 8-character lines?

I'm toying around with binary code and ciphers and I've a chunk of text which I would like to reorganise in 8-character lines (those familiar with the topic will understand why). See: ...
30
votes
3answers
28k views

How can I measure the execution time of a terminal process?

I'm trying to measure the execution time of a process that I call via the command line (i.e., I want to find out how long it takes to for the process to finish). Is there any command that I can add to ...
4
votes
2answers
4k views

How to add a script to command list

I am using sage a math library in python. After downloading its package, I usually have to go to the directory where I extracted it and then run the the script using sudo ./sage from terminal. How ...
3
votes
1answer
161 views

how to create an audio clip from a video file using command line?

I would like to create an audio clip from a video file using the command line, since this is in a terminal text-only Ubuntu 11.04 server system. I would like to select the starting and finishing time ...
1
vote
0answers
77 views

Strange behavior when using command line `man` [closed]

When I run the command line: man fork There is a highlight line at the bottom says: Manual page fork(2) line 52/99 (END) But when I navigate to line 53 and up to 99, they are just blank ...
11
votes
3answers
11k views

How do I kill a locked SSH session? [duplicate]

From time to time, SSH sessions to my servers just freeze up and then neither Ctrl+C nor Ctrl+\ do anything. How do I quit the session without just closing the Terminal it's in? Clarification: ...
2
votes
1answer
1k views

Authoring a DVD into an image file, from command line

I would like to convert a whatever-type video file into an ISO image I could then burn to a DVD (on another computer) - so that the final disc is playable on a regular DVD player. I already have ...
2
votes
1answer
510 views

A simple email autoresponder

I have a POP3 email account, that I do not use anymore. It is on a server out of my control. Several of my contacts keep on sending email to that address, though I told them. So I decided to set an ...
2
votes
1answer
2k views

Errors shown in terminal when editing files with gedit

When editing any file f.e. like this: r@ngf:~$ sudo gedit /etc/default/grub [sudo] password for r: (gedit:1638): Gtk-WARNING **: Attempting to store changes into ...
4
votes
1answer
1k views

Understanding hexdump '-e' option

I'm trying to understand the formatting option of hexdump. I have read the man page and it says that I can tell it what format to output the data in by using the -e option. However, I can not for the ...
1
vote
2answers
355 views

How can I add a menu item to the right click menu?

In Terminal, if I right-click over a URL, a little menu pops up. The first option is "Open Link". Is there any way to add an option to this menu called "Open Link in Elinks"? I'd like to be able to ...
6
votes
2answers
698 views

How to run an app from the command line and carry on working? [duplicate]

Possible Duplicate: How to clean launch a GUI app via the Terminal (so it doesn't wait for termination)? For example, if I want to run Netbeans from the CLI, I can type: $ ...
8
votes
3answers
3k views

how to detect a file over internet using ping or similar command?

I have a shell script to download some of my stuff over Internet. How can I know if a file exists over the Internet? Let's say I want to know if http://192.168.1.1/backup/01012011.zip exists or not? ...
18
votes
3answers
1k views

How can I initiate Nautilus file operations from the command line?

How can I start Nautilus's "File Operations" GUI from the command line? My goal is to include this in a Nautilus script.
63
votes
5answers
41k views

Is there a hotkey to switch between tabs in the default terminal app?

Is there a hotkey to switch between tabs in Ubuntu's native terminal app? I'm using the netbook version of ubuntu.
6
votes
1answer
908 views

How to find the type of the file without using extension

I ask this question for running an find command. I want to list all mp3(lets say) using the find command.How to do this without having an extension.
3
votes
1answer
192 views

What can I use to install a package file with dependency from command line?

I want to install my project's debian package from a shell script. For that I'm using the command sudo dpkg -i my_project_0.1.deb. But it's not going to install dependency. I've also tried sudo dpkg ...
8
votes
1answer
2k views

Why should I use gksudo for Gtk apps instead of sudo? [duplicate]

I read somewhere that people should use gksudo for applications that use the Gtk GUI instead of sudo? What's the reasoning for this?
4
votes
2answers
5k views

Can't echo $CATALINA_HOME

When I echo $CATALINA_HOME I get a blank line, but when I ls $CATALINA_HOME I correctly get a listing of the directory. Why can't I echo it? I am running Ubuntu 11.04.
3
votes
1answer
106 views

Guides for Ubuntu Software

As I mentioned in previous questions I am setting up a computer lab for a charity that deals with orphans in Tanzania Africa. One thing that would be very helpful are eBook/PDF guides for Ubuntu ...
4
votes
2answers
15k views

How can I switch user in a shell and use the existing gnome display session?

If I switch user in a terminal. su bob I can't open gedit because bob doesn't own the display. If I execute xhost + before switching to bob I can open the display for some applications but not ...
7
votes
3answers
5k views

How to use ampersand in command line?

When inputting a Google Maps Directions url into the command line (for opening with chromium browser via Terminal) there is an ampersand (&) in the url, however the terminal breaks it there ...
2
votes
2answers
77 views

Different action for unity launcher icon depending on action?

I'm making a launcher that when clicked will open up a chromium window with tabs for Gmail, Google Docs, and Google Calendar, but I'd also like to drag and drop documents into the launcher icon and ...
7
votes
3answers
1k views

TTY[1-6]: Lock screen after delay (like a screensaver)

When using the virtual terminals on TTY 1-6 [*], it's sometimes easy to forget to log out: The screen goes blank after a while, but I'm still logged in - no password required, anyone can use my ...
2
votes
1answer
8k views

How to generate an extended F key press (F13-F20)?

I need to submit an extended function key (like F17 or F17 ) to a program that runs in the terminal (I use the default gnome-terminal but could use another if it works there). Is there a way in ...
6
votes
1answer
5k views

How to reinstall many removed packages at once?

I used sudo apt-get remove python command and accidently removed a bunch of packages that were required. I logged in via command line and installed ubuntu-desktop again but there are other packages ...
15
votes
3answers
1k views

Stitch scanned images using CLI

I have scanned a newspaper article which was larger than the scanner glass. Each page was scanned twice: the top and the bottom parts, where the middle part appeared in both images. Is there a way to ...
5
votes
1answer
1k views

How to authenticate googlecl using terminal

I'm trying to use googlecl on my Ubuntu server to send pictures from my server to picasa. I can't seem to authenticate via google using w3m, so I'm wondering if there is some other way to ...
0
votes
1answer
84 views

Update 10.10 server under VMWare

I'm using Ubuntu Server 10.10 under VMware Workstation 7.1.3 and I wonder how to update ubuntu server via terminal since I don't have any GUI.
2
votes
1answer
445 views

Why isn't .profile sourced on login to LXDE?

I switched recently from GNOME to LXDE and since then my .profile file hasn't been sourced on login. I found out that my PATH variable doesn't include ~/bin anymore. However, my .profile file includes ...
1
vote
1answer
2k views

Error while compiling ffmpeg during make

I want to install ffmpeg on ubuntu. and following this article http://pasindudps.blogspot.com/2010/12/compiling-ffmpeg-in-ubuntu-1010.html but when m doing make after config Then go to the ffmpeg ...
9
votes
4answers
2k views

Why does echoing these parameters with sudo not work? [duplicate]

Possible Duplicate: sudo & redirect output These are suggestions given by powertop to save energy: echo 1500 > /proc/sys/vm/dirty_writeback_centisecs echo 1 > ...
4
votes
2answers
3k views

How to check what kind of video card is mine?

Is there any command line or program in Ubuntu 9.04 to discover which is my video card?
2
votes
1answer
722 views

How do I get gnome-terminal not to truncate lines?

I have a huge xml file which I want to look at with cat some.xml | less but the gnome terminal truncates the lines making it difficult to read the output. How do I get gnome-terminal not to truncate ...