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

learn more… | top users | synonyms (6)

65
votes
10answers
91k 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
389 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 ...
37
votes
7answers
72k 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
268 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
16k 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
662 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 ...
18
votes
3answers
10k views

Use “locate” under some specific directory?

I was wondering how to restrict the search range of "locate" to some directory? For example, how to find files/directories with string "math" in their names under some directory "/home/tim/science/"? ...
1
vote
3answers
727 views

How to make my own command with parameters

I am tired of javac filename.java and then java filename isn't there a way to make my own command? mycommand filename.java And the filename.java is both compiled and run??
0
votes
2answers
2k views

Failure to install a package from the command line?

Here's an example: HP-G62-Notebook-PC:~$ ccsm The program 'ccsm' is currently not installed. You can install it by typing: sudo apt-get install compizconfig-settings-manager ...
6
votes
3answers
5k views

How to convert LaTeX equations to SVG?

At the moment, I'm using mimetex to automatically convert a bunch of equations into gif-images. The program is fast, but the images look pretty bad: How can I (quickly) convert a LaTeX equation ...
3
votes
2answers
346 views

How to setup a ubuntu home network based on a powerful server and many outdated laptops as terminals?

I am wondering if it is easy to do this. I know that using X to serve the other computers ain't that difficult. I just have no idea how would I have to configure the laptops in order for them to work ...
9
votes
2answers
8k views

What is a virtual terminal for?

When I press ctrl+alt+F1 it goes to virtual terminal. What is this virtual terminal for? When do you need to use it?
3
votes
3answers
2k views

Connecting to Internet Through Another Computers Connection

I have an old laptop running Ubuntu 10.10 (server edition) that I want to connect to the Internet, but it's Wireless card isn't working properly, so on the recommendation by a friend, I tried to ...
3
votes
1answer
1k views

How to enable my terminal's ctrl + shift + c?

My terminal cant use Ctrl + Shift + c or Ctrl + Shift + v since I setup something. What can I do to get those shortcuts working again? Thanks.
2
votes
1answer
1k views

Add terminal to panel

Is there any way to pin the terminal to the panel? I'm monitoring a server via top and would like to have some of the information (at least the first row e.g. the load average) always on my active ...
0
votes
2answers
877 views

How can I clear the console window after grep fills the screen?

Is there a way to clear up what is displayed on the shell console (in ubuntu linux) in just a single key or two? When I get flood of lines from grep and that exceeds the height of the window, I want ...
7
votes
3answers
10k views

How can I disable/modify the SSH login banner for a given user?

How can I disable/modify the SSH login banner for a given user?
16
votes
3answers
60k views

How to remove Postgres from my installation?

I have ubuntu 9.10(karmic), and when I attempted to install a new program, the postgres was installed as a dependency of that program, no problem at all if the installation occurs with success, but ...
5
votes
2answers
3k views

How do I turn off font pixel antialiasing only in Terminal?

For programming, I like to turn off font antialiasing (i.e. select the Monochrome option) because it makes the terminal text look a lot sharper at smaller font sizes. But then everything in the web ...
0
votes
1answer
266 views

Determining the geometry parameters of a running terminal [duplicate]

Possible Duplicate: Get Window size in shell I have a terminal running on the desktop and I would like to determine it's size and coordinates. I'd like to get the parameters in the format ...
4
votes
2answers
3k views

cat command - will it overwrite?

In order to pass the contents of one file to another we can, for example: cat ~/temp_minhakey.pub >> ~/.ssh/authorized_keys Let's say, we need to append more content to authorized_keys, but ...
7
votes
2answers
17k views

Forceably set permissions when running rsync

Currently I am backing up gigabytes and gigabytes of data from a live server to a backup server using an rsync/ssh combination script, allowing for automated operation every night with a cron job. ...
2
votes
2answers
602 views

Problems installing packages from downloaded files using terminal

I am facing Problems installing packages from downloaded files using terminal. for ex - I downloaded goobox-2.2.0.tar.gz , i extracted using archive manager. Then i opened terminal in folder and typed ...