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

learn more… | top users | synonyms (5)

0
votes
1answer
594 views

How to get wlan0 rate from cli

question is in title, best would be from some file in /sys instead of parsing output of iwlist ? I need this number from output of iwconfig "Bit Rate=54 Mb/s". Thanks
13
votes
4answers
50k views

How to search for files containing specific word?

How to search for files containing specific word?
2
votes
4answers
3k views

How to change console title?

on windows I have command title new title name is it possible on Ubuntu?
8
votes
1answer
2k views

How to change the icons of multiple files from terminal?

I would like to change the icons of multiple files from terminal. Not launcher icons, but the default icons for filetypes, based on the file endings. How to acheive this task?
11
votes
2answers
3k views

How can I start a different X session on tty8?

Let's say, for an example, I want to run a full-screen opengl application on tty8 and have my standard GNOME desktop on tty7. How can I configure Ubuntu to meet my requirements?
2
votes
4answers
4k views

How can you animate a gif that goes back-and-forth instead of repeating?

I'm animating a gif with Imagemagick, I'm doing animate *.JPG, and that repeats the animation. But I would like it to go do "pic1, pic2, pic3, pic2, pic1" and repeat, so that it goes back and forth. ...
35
votes
10answers
233k views

How do I run .sh files in Terminal?

Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal. How do I open this file in the ...
0
votes
2answers
387 views

How to re-purpose a computer to be a NAS type server?

If someone could walk me through the setup process that would be cool. maybe you could just leave a simple list of each command I need to enter in the correct order to set this thing up? Here are ...
1
vote
2answers
2k views

My taskbar doesn't show up after startup

Just upgraded to natty. This is the first time I turned on my computer to use it. It didn't show anything but my wallpaper. No side panel or taskbar. Just the wallpaper. Now, I sort of know what ...
3
votes
1answer
2k views

Monitor displays signal out of range until the graphical interface is loaded after installing

When the computer is booting all I get is the error message displayed by the monitor. I need to be able to choose the OS during startup however. I'm using a 1024x768 on this monitor, though it maxes ...
45
votes
5answers
96k views

What is a terminal and how do I open and use it?

What is a terminal? How do I open a terminal window? How do I use the terminal?
3
votes
1answer
7k views

How do I disable TCP Window Scaling?

TCP Window Scaling is part of RFC1323 - TCP Extensions for High Performance I'm on Ubuntu 10.10 at the moment. For an immediate effect I have run the following: sudo sysctl -w ...
0
votes
3answers
2k views

How to change directory at the end of a bash script?

In my .bashrc: function rnew { $HOME/.dotfiles/railsnewapp.sh $1; } Essentially, I call rnew from any directory, and it creates a directory in ~/code/appname, installs Rails into it, and then I ...
2
votes
1answer
550 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.
56
votes
4answers
239k 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
636 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
540 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
935 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
457 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
193 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.
63
votes
9answers
87k 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
380 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
454 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 ...
25
votes
4answers
45k 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
16k 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
144 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
415 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
381 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
6k 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
183 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?