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

learn more… | top users | synonyms (6)

5
votes
1answer
4k views

How to remove files modified between particular dates?

As in the topic: I would like to remove files in a directory that have been modified in a particular date range. How can I do this ?
4
votes
2answers
2k views

paste selected text: switch right and middle click

Is there a way of choosing between right and middle click for pasting? There are ways of for disabling it, I want to change the behaviour How do I disable middle mouse button click paste?
1
vote
0answers
115 views

Removing terminal username and path information? [duplicate]

Possible Duplicate: Hide current working directory in terminal In the terminal, you are present with the following: <user>@<machine>:<path>$ How can I modify this so ...
0
votes
2answers
127 views

Bash - CP difficulties

cp -r /opt/lampp/htdocs/codeigniter_2.0.2 /opt/lampp/htdocs/test/ That command is making this: /opt/lampp/htdocs/test/codeigniter_2.0.2 and I need only the content of codeigniter_2.0.2 inside test. ...
1
vote
1answer
647 views

Create terminal to command

I have to create several projects with a folder structure, in those folders will be some files. Every time I have to create a project, I have to create a folder, copy folders and files from another ...
6
votes
2answers
864 views

How do I get “ruby” to do what “ruby1.9.1” does?

I want to start off by saying... I really don't need to be using 1.9.2. I understand that you don't ever, ever use Python 3.2, so if the common advice is that I should use 1.8, I'll do that. But don't ...
0
votes
2answers
272 views

APT user guide and where can I find it?

I am trying to get hold of the APT user guide to browse some of the more advanced options other than just apt-get etc. however whenever I type man aptI get a message telling me manpage is not loaded. ...
141
votes
4answers
586k views

How do I rename a directory via the command line?

I have got the directory /home/user/foo and I want to rename it to /home/user/bar. How can I do this in a terminal?
7
votes
2answers
6k views

How to log memory and cpu usage of an application?

Similar to question How to log CPU load?, I would like to log memory of a process. The process I want to log, is killed on a remote server, and I want to find out the CPU load and the memory usage ...
3
votes
2answers
3k views

What's the command for ssh to find files which *.png and download them

I was connected my OpenSSH, but What's the command for ssh to find all files which are *.png and get them at the same time, recursively
1
vote
2answers
244 views

How can I have one screen session per user and set it as the login shell?

How can I set screen so it runs automatically any time a user logs in using a CLI interface? If there is already a screen session running for that user, I would like any new logins to attach to that ...
2
votes
2answers
1k views

What is a quick way to connect two or more pdfs together using the command-line?

I have a few pdf files (e.g., small1.pdf, small2.pdf, small3.pdf) that I'd like to be able to join together to form one larger pdf (e.g., large.pdf). What is a good option for doing this on the ...
11
votes
2answers
2k views

In the terminal, how can I repeat a command multiple times on different files?

In the terminal, I want to use ffmpeg2theora to convert all the .MOV files in a certain directory to .ogv files. However, the following does not work: ffmpeg2theora *.MOV Is there a good way to ...
1
vote
1answer
3k views

what is the yakuake alternative for unity desktop?

is there any alternate for yakuake for the unity desktop, when i log in unless i'm in KDE, i cant open yakuake. sudo apt-get install yakuake returns nothing on unity, while on KDE it installed ...
4
votes
2answers
1k views

Store frequently used terminal commands in a file

Okay, so I want add a command to my Desktop (Or any convenient location), and whenever I run it I want it to clone the HTML5 boilerplate. $ git clone git://github.com/paulirish/html5-boilerplate.git ...
0
votes
0answers
98 views

How to do create an auto mounter? [duplicate]

Possible Duplicate: Additional file system and mount at boot time? I am new to ubuntu and I need some help here. I want to mount the file systems using auto mounter. How to create a new ...
1
vote
3answers
158 views

Accessing other partition from the command-line immediately on startup

My other hard drive partition (i.e., the Windows partition) is located in /media/OS. However, I don't seem to be able to access it from the command line when my machine starts up in Ubuntu. I have to ...
2
votes
2answers
466 views

Repeated long command in gnome-terminal do not show up in full

Let's say I type a shell command in gnome-terminal/bash that spans multiple lines and run it. shell> abcdef ghijk lmn opq rstuv wxyz Then when I want to run the same command again, I hit the ...
7
votes
3answers
1k views

Command line: create file with new filename if the filename already exists

I was wondering if it was possible have a command that creates one file, but every time the command is executed, it wouldn't overwrite the file created in the previous execution. For example: touch ...
1
vote
1answer
4k views

How to download a package for offline installation? [duplicate]

Possible Duplicate: How can I install software offline? sudo apt-get install {x} ex: X = ghdl I want download the package "X" to my USB . How can I do that ? Second, my computer ...
4
votes
3answers
2k views

Is the command line structure the same for Linux and Ubuntu?

I'm new to the Linux world. I'm curious to know if the command line syntax is the same between Linux and Ubuntu?
123
votes
10answers
418k views

How to use “grep” command to find text including subdirectories

I want to find all files which contain a specific string of text. The grep command works, but I don't know how to use it for every directory (I can only do it for my current directory). I tried ...
1
vote
1answer
1k views

How to compile the latest version of the command-line video download tool - cclive

cclive is a tool for downloading media from YouTube and similar websites. I am trying to compile the latest version of cclive but cannot compile the first step libquvi I am getting the following ...
0
votes
3answers
10k views

Change remote desktop permissions from the command line (remotely?)

I can ssh into my desktop at work and work at the command line, but I would like to use a remote desktop protocol to check on some of the programs that I left open and running. I have not set up ...
3
votes
1answer
1k views

Why does a command work from shell, but not from the applications menu?

I'm trying to add a command to my applications menu: But when I select it from the applications menu, it doesn't do anything. When I run that same command from the shell, however, it runs fine. ...
19
votes
1answer
13k views

shortcuts to select text in terminal

I was wondering if there are shortcuts for selecting some text in terminal, just similar to holding shift and type arrow key in editing a text file in a text editor. Thanks!
1
vote
1answer
856 views

WICD works fine, command line fails [closed]

Connecting to the internet using Wicd and Networkmanager works just fine, but through the command-line i get the next error: # ifconfig eth1 down # dhclient -r eth1 # ifconfig eth1 up # iwconfig ...
4
votes
1answer
6k views

How to gain a permission for copy/pasting for system folders?

I've been using Windows OS before, and it's a bit hard for me copying and pasting to Ubuntu's system folders so. If i drag file or folder into File system folders, I'm getting "permission denied" ...
22
votes
8answers
8k views

Dynamic line wrapping in the GNOME Terminal

How can you get the lines in the GNOME Terminal to wrap dynamically when you resize the window?
20
votes
4answers
5k views

What do “.” and “..” mean when in a folder?

when I used ls -a to view hidden files in folder there were 2 hidden files created by default what is the significance of this two files . and ..? ls -a Produces . ..
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. ...
5
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
782 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
150k 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
60k 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
164 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 ...