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

learn more… | top users | synonyms (6)

2
votes
1answer
555 views

What's the best way to implement a script for tiling windows?

I just upgraded to ubuntu 11.04, and I am looking for a good way to tile windows. What I need is just to move window to the left or right half side of the screen, and bind the actions to some keyboard ...
17
votes
7answers
10k views

Is there a command that returns network utilization?

I need a command that I can run that returns the current utilization of wlan0. Does such a tool exist? I would prefer something that doesn't require root privileges.
63
votes
4answers
254k views

How to access a usb flash drive from the terminal? (How can I mount a flash drive manually?)

I only have access to the command line I need to backup my data (on the user folder) to a pen. I don't know where/how can I do this is order to access the pen, and then do the cp command. How can ...
4
votes
1answer
1k views

My terminal is invisible

I have just moved to Natty from Maverick and suddenly my terminal is invisible. I can type commands and they get executed, but I don't see a thing - only cursor changes when the terminal area is ...
1
vote
1answer
642 views

When do iptables rules become active?

I have an script that bans selected IPs from my server. Example: iptables -A INPUT -s 123.123.123.123 -j DROP My question is: When this rule will start working? I'm asking this, because yesterday ...
0
votes
2answers
1k views

How do I upgrade from 10.04 to 10.10 in one command by using the terminal? [duplicate]

Possible Duplicate: Upgrading from the command line? Hi, I dont want to use the update manager I just want to type one command in a terminal do you understand? I am at 10.04 and want to ...
0
votes
1answer
549 views

Batch Image Crop to 6x4

I have a bunch of images which are not 6x4 images. How can I crop all the images to 6x4 and keep to the best quality possible at the same time?
1
vote
1answer
2k views

How to check if a user is logged in?

how do i check from within a php script, if a user is logged in? My current way is, to get the output of w | grep <username> and check, if there is output. It works, if a user is logged in ...
0
votes
2answers
2k views

How do I turn on and off compositing from the command line?

As the question says: how can I turn on/off compositing (like clicking the appropriate option in System→ Preferences→ Appearance→ Visual Effects) using the command-line? I run Ubuntu desktop 10.10, ...
4
votes
5answers
1k views

How to record the terminal on a server?

I enjoy recording screencasts in my spare time, and was hoping to get going recording some Ubuntu stuff. I have a machine running Ubuntu Server, is there any easy way to record the screen?
2
votes
1answer
4k views

How do I run BleachBit from the terminal?

On their website, they say to simply enter bleachbit --(argument here) but all that does is open the program. Am I doing something wrong?
0
votes
4answers
941 views

How to escape this in the bash script?

I'm trying to complete a batch of 3 videos to leave it there till morning processing but it seems there are special characters in it... I try it "raw" in the terminal and it works but in bash script ...
1
vote
2answers
470 views

Creating a Fortunes file

How can I create a fortunes file and add it to the fortune* command on the shell? *Fortune - "console command to print a random, hopefully interesting, adage."
0
votes
2answers
2k views

No terminal in Applications menu

I have recently bought a dedicated server, which is running Ubuntu 10.4, but there is no terminal in the applications or in system. How do I add it for easy access (I'm new to Linux).
5
votes
0answers
194 views

How to configure terminal window to open on a specific default path? [duplicate]

Possible Duplicate: How can I start gnome-terminal at a particular directory? At present, each time we open a terminal window we are placed inside our home directory. /home/myuser/ I would ...
2
votes
1answer
142 views

~ no longer takes me to my home directory

I'm a newcomer to Ubuntu (and linux in general) and since I have a machine spare, I have Ubuntu Server (terminal only) installed on one of my machines. I've recently started playing around with my ...
7
votes
2answers
8k views

How do I remove a repository from the terminal?

I have a Banshee link that is wrong and I need to remove it, how do I do it from the Terminal? I have the incorrect link, I have the correct one as well.
65
votes
10answers
90k views

What's a command line way to find large files/directories to remove and free up space?

Looking for a series of commands that will show me the largest files on a drive.
2
votes
6answers
381 views

I want to know about Ubuntu basics: shell, command etc about Ubuntu. help!

I'm new to Ubuntu and I want to know some basics about Ubuntu/Linux, because I don't understand command line, shell, etc. Would anyone please explain about ubuntu shell, command and what's the meaning ...
1
vote
2answers
166 views

Is it possible to colorize permissions-part of the output of `ls`?

In the rwx permissions that are listed by ls -l, is it possible to put the first set of rwx in red, the next in blue and the third in green? For example, is the following possible:
18
votes
4answers
3k views

How to determine the size of a package while using apt prior to downloading?

When using apt-get install <package_name>, and there are dependencies that need to be downloaded, the terminal outputs names of additional packages and total size, and asks for confirmation ...
0
votes
1answer
455 views

Suspending Ubuntu using terminal [duplicate]

Possible Duplicate: How can I suspend/hibernate from command line? How can I suspend Ubuntu using the terminal? Can I schedule it to "wake up"? Another thing that I wanted to know is ...
26
votes
4answers
47k views

How to change extension of multiple files from command line?

I have many files with .abc extension and want to change them to .edefg How to do this from command line ? EDIT: I have a root folder with many sub-folders, so the solution should work -r ...
8
votes
0answers
3k views

Checking laptop's battery state in a terminal [duplicate]

Possible Duplicate: How to check battery status using terminal? I want to find out whether my laptop is plugged in to AC power or not using the command line. How can I do this?
8
votes
5answers
17k views

How to recursively remove .svn metadata folders?

I have a Java project and it used a SVN repository, now I decide to change to GIT. However the problem is that SVN engine that I used created in every folder of the project the .svn metadata ...
17
votes
1answer
3k views

How to programmatically swap the caps lock and esc keys?

I am a heavy Vim user and one of the first things I do when I start working on a clean ubuntu installation is to swap the caps lock and esc keys to reduce hand movements over the keyboard. So far I ...
10
votes
7answers
3k views

Command line calculator that keeps fractional values

I just found a good command line calculator program called bc and was satisfied with it until I discovered it rounds off fractional values, thus causing loss in precision. According to its man page: ...
0
votes
2answers
146 views

How do you create a multipurpose launcher?

I want to create a single launcher for Chrome, Banshee,Thunderbird and Gwibber. What is the easiest way to do this?
10
votes
2answers
17k views

converting aac to mp3 via command line

Original Question Is there some cli tool to convert aac files from the iTunes Store (no DRM) to mp3? Update 1 MP3 to MP3 I installed libavcodec-unstripped-52 and get a little further. When I try ...
1
vote
2answers
273 views

Why does my $PATH have only 3 entries?

When I run echo $PATH, I only get the following: /usr/local/bin:/usr/bin:/bin According to /etc/environment, I should be getting: ...
3
votes
1answer
98 views

Using python3 To Install Git -> If Statements/File Reading Error

As part of a larger program, I am using git to check the program itself for updates. Of course, the user will need git installed to do so. I've created a small bit of python3 code to check if the user ...
7
votes
1answer
3k views

One line command for adding new items to com.canonical.Unity.Panel systray-whitelist

This is more of a how to use command line instruction question more than how to add items to the Unity notification panel. I have to have a one line CLI to add a new item to com.canonical.Unity.Panel ...
1
vote
1answer
426 views

Reopen A Python File Where It Left Off After Restarting

I am creating a quick python3 program and at one part the server will need to be restarted. The thing is, that is not the end of the what the python file is supposed to do. Is there a way to make it ...
5
votes
0answers
8k views

How to change background color of gedit embedded terminal [duplicate]

How can I change the background color of gedit embedded terminal? I have tried changing my normal terminal (ctrl+alt+t) background and restarting gedit - but no luck. Thanks
3
votes
2answers
387 views

Command line interface to make a ogg mono from stereo

Is there a command-line interface I can use to make one or more ogg-music-files into mono?
0
votes
4answers
7k views

Changing colors in terminal output

When i write scripts i want that some lines are colored in output. My questions is not about changing prompt (PS1) but for example how can i change that the output, let us say, "cat ...
2
votes
2answers
184 views

Looking for a log thats bound to sudo

I've issued the commands sudo su, and sudo sh. Can you please tell me if there are logs associated with sudo, and where I could find them?
8
votes
2answers
2k views

How to monitor what files are opened

Is there a tool to monitor what processes open what files on the system so you can track down which process keeps touching a specific file? Lsof can find out if you run it while the process has the ...
36
votes
7answers
71k views

Find number of files in folder and sub folders?

I want to find the total count of the number of files under a folder and all its sub folders.
1
vote
0answers
51 views

How do I upgrade to the development release without graphics? [duplicate]

Possible Duplicate: How do I upgrade to the development release (aka. Ubuntu+1)? There was a question How do I upgrade to the development release (aka. Ubuntu+1)? The solution is to use ...
5
votes
6answers
15k views

Open application to edit text files from the command line

When installing the TextWrangler in OSX you also get an edit command which allows you to open any text file from the command line. Is it possible to have a similar functionality in Ubuntu to type ...
3
votes
1answer
265 views

What package provides the functionality to suggest which package to install when the user types an unknown command?

On Ubuntu 10.10 server when I type htop the result is simply: bash: htop: command not found I know that there is some software which I can install that tells me what I have to install that provides ...
14
votes
2answers
15k views

How to add exports to fish like in .bashrc?

I just wanted to be able to add inside some fish configuration file (don't know which/where) the same function as this: export PERL5LIB=/home/iaco/workspace/perl:/home/iaco/devtools This line was ...
8
votes
2answers
6k views

How to change font size and/or screen resolution in Virtual Terminals TTYs 1-6…?

The default font size in the non-X terminals is too small for me. How can I changed it permanently ? I've ran sudo dpkg-reconfigure console-setup in TTY 1, but seems to only effect the ...
4
votes
2answers
1k views

What is the meaning and format of LANGUAGE?

I'm used to environment variables such as LANG and LC_*, but I recently noticed a LANGUAGE variable on my Ubuntu desktop. It's value was pt_BR:pt:en, and I'm wondering exactly what is meaning is. ...
3
votes
1answer
661 views

How to automatically graph the output of a shell function

I do a lot of video editing and processing, and spend a lot of time looking at the output of command line programs like ffmpeg. Ffmpeg produces a regular output of the form frame=1234 fps=80 q=-1.0 ...
2
votes
1answer
208 views

CLI Screenshot/Streaming screen

is there any way how i can make a screenshot of CLI command "screen -r", then save it as .txt? And set it up as cron job so i can stream my "screen -r" command? Is there any way how i can stream my ...
27
votes
7answers
30k views

How do I navigate to a samba location I've mounted in Nautilus on the command line?

Please note: I am two weeks old in Linux. I have found a lot of answers to this question on the internet, tried many, but all failed one way or another. Therefore I dare to ask once again in the hope ...
5
votes
4answers
229 views

How can I get a complete list of non-standard repositories in use?

While doing some support audits I'd like to know what would be the most efficient/compact way to get a list of all extra reporitories being used on a given Ubuntu workstation using command line (not ...
9
votes
2answers
589 views

Application with Output similar to the GUI output of “WireShark”

I know that WireShark allows live packet capturing as well as details being displayable in the GUI. Is there any similar program that operates on a CLI, rather than a GUI? This is intended for use ...