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

learn more… | top users | synonyms (5)

4
votes
1answer
4k views

How do I re-activate (wake?) the monitors from the command line

My machine is a little weird on the graphics/monitors. I'll go into that in a bit, but I'm specifically looking for how to do the following: When the monitors are standing by, but the system is ...
14
votes
2answers
9k views

Logging out other users from the command line

Sometimes when there are too many users logged in it can cause my computer to become very slow and laggy due to low amount of available RAM. I would like to be able to quickly log out the other users ...
14
votes
2answers
9k views

Split a large file into smaller files and then integrate them to get the original file

How do I split a 7GB (movie) file into smaller files of (say) 1GB, and then (in another Ubuntu computer) integrate them to get the original file (using just bash commands)?
6
votes
2answers
12k views

What does outputting to /dev/null accomplish in bash scripts?

Oftentimes I run into small bash scripts that use this sort of syntax in if statements: some command > /dev/null 2>&1 What is the purpose of outputting to /dev/null like that, and what does the ...
53
votes
10answers
45k views

A command-line clipboard copy and paste utility?

In Windows I used command-line clipboard copy-and-paste utilities... pclip.exe and gclip.exe These were UnixUtils ports for Windows (but they only handled plain text). There were a couple of ...
19
votes
4answers
9k views

Is the difference between sudo and gksu the same as the difference between sudo -i and sudo -s?

Is the difference between sudo cmd and gksu cmd, the same as the difference between starting a shell with sudo -i and sudo -s? ... or put another way, Is sudo cmd the same as sudo -i cmd and gksu ...
3
votes
1answer
578 views

Copy filename in Nautilus, pastes different formats in Terminal vs normal text field

I often copy fully qualified filenames from Nautilus... However I get a different paste result when I paste it into a Terminal vs. when I paste it into a "normal" text field (eg. a text editor, ...
5
votes
1answer
2k views

How can I make the terminal stay on top [duplicate]

Possible Duplicate: How to start an app with “Always On Top” set? Every time I use the terminal I have to right click on the title bar and click "Always on top". Is there anyway ...
8
votes
1answer
823 views

Command line tools in one language, system in another

I am not native english speaker, so my Ubuntu language is different, and it's ok :) But I would like to have command line tools (SVN, for example) to print messages in english, and not in my system ...
18
votes
10answers
4k views

Command line games

Does anyone know if there are games for Ubuntu server (like tetris, etc...)? I know that servers aren't meant for playing games, but sometimes it would be nice to have a little fun . . . not only ...
5
votes
7answers
3k views

How to create a minimal installation in VMware Player for browsing?

I am trying to build a minimal vmware image to use for private browsing (also called a browser appliance). I have tried using images for other small linux distros, most of them are either too heavy (I ...
1
vote
1answer
111 views

Retrieving the Names of Files in a txt file

How to Retrieve the Names of Files to a txt file??
5
votes
3answers
237 views

I need a command to remove all files from a directory (and subdir) that are under 20MB

With the exception of certain file extensions. (removing junk other than subtitle files from a video directory)
23
votes
3answers
20k views

How can I convert a ppt to a pdf from the command line?

I have a folder containing a bunch of ppts, each of which I'd like to convert to an individual pdf. I'm using Ubuntu 10.04 with whatever comes installed on it.
2
votes
2answers
1k views

Replace first line in text file by i-th line from another text file

Can i do the following in the terminal? (written in pseudo-code) for (int i=1;i<=5;i++) { replace first line of fileout.text by i-th line of filein.txt } i guess it somehow involves using sed, ...
2
votes
3answers
1k views

stop program from terminal if running for more than x seconds

so by typing /.blabla I launch the program blabla. Is there a way, from the terminal, to stop (i.e. equivalent of ctrl+c) blabla has been running for more than x secs? (I'm trying to test a ...
6
votes
5answers
21k views

Add a string to a text file from terminal

I would like to modify a bunch of text files from the terminal, more precisey: add the string '50' to the first line of every text file in /mydat/ ? Alternatively, if you know of a link to a page on ...
4
votes
2answers
1k views

Print terminal output in gedit automatically?

the command time ./myprog displays the time it took to run myprog on the screen. Now i would like to write this information to a text file. How?
4
votes
4answers
986 views

Is there a teminal command to get the most recently created file or folder?

I often need to do something like command most_recently_created_file_or_folder from the terminal. I'd appreciate any help.
40
votes
7answers
33k views

How to clean launch a GUI app via the Terminal (so it doesn't wait for termination)?

Some GUI apps launch cleanly via the Terminal command line. Some don't, and they cause the Terminal to wait for the app to terminate. ...and even then, some don't "release" the command line. The ...
4
votes
2answers
2k views

How to scroll in the Terminal app “top”?

I've read the info page, but I can't find any way to scroll the list in top. Maybe there is no way to scroll?... but there must, at least, be some way to filter the list, and I can't find that ...
3
votes
1answer
2k views

How do I mount a digital camera via the command line?

When I plug in in my digital camera (Fuji F100fd), Nautilus automounts it as 'USB PTP Camera' with the path 'gphoto2://[usb:001,007]/'. lsusb lists it as Bus 001 Device 007: ID 04cd:02ef Fuji Photo ...
10
votes
5answers
49k views

Get root access for copying files to /usr/share/…?

To be short, I want to copy a folder to a location /usr/share/screenlets/.... in Ubuntu 10.04 system. I tried by logging in as root from terminal giving su. I even changed my user account type to ...
2
votes
2answers
913 views

A script to achieve optimum image compression from command line tools

I want to process images in batched for uploading onto websites. I am looking for a script which will provide optimum compression with 1024x768 size using commandline tools like image magic etc. ...
6
votes
3answers
12k views

How can I execute commands in a text file?

I have a bunch of commands seperated by \ns that I'd like to execute serially (from the command line) in a file called ec2-env-setup. I'd appreciate any help.
0
votes
5answers
362 views

Highlighting and copying chunks instead of lines?

I remember vaguely, that we could highlight chunks in vi. Is there anyway to do that in a console? eg: In the image, I wanted to select the numbers only, but highlighting only captures complete lines, ...
9
votes
3answers
5k views

configuring wireless on command line interface

Sometimes I boot into recovery kernel with CLI and networking for troubleshooting my laptop. So is there a way to connect to a wireless router or AP over command line? If it is possible what are the ...
16
votes
5answers
12k views

X11 Forwarding over Gnu Screen, is it possible?

I use GNU Screen constantly. But, I've been trying to figure out if there is someway to get X11 apps to forward over screen when I am ssh-ing (Is that a word?). Currently if I try to run 'gedit' ...
3
votes
2answers
2k views

Booting ubuntu desktop into command prompt

I use ubuntu desktop 10.10 on a netbook. Quite often I use it as a proxy server (squid3) and file server (samba) for my network. So when I am using it as a network server, is it possible to boot into ...
2
votes
3answers
272 views

Is there a command to see who owns an Internet domain?

Is there a command to see who owns a specific Internet domain address? I have tried with whois example.com and I get some information. But for "holder" there is just a "user ID". Is there any way to ...
4
votes
6answers
18k views

How can I see folders from terminal?

How can I list folders from within the terminal, which command should I use?
4
votes
3answers
8k views

how do you format a usb stick in ubuntu server

How do you format a usb stick through the terminal?
2
votes
2answers
121 views

Print numbered arguments in Command Line Tool

Is there a packaged program that shows command line arguments? I often find it helpful to have users run this type of program to either help them understand what their shell commands do, or to get ...
3
votes
1answer
98 views

Create deb from dvcs-source

Is there a system in Ubuntu which simplify the process of getting the sources from git, compile and package it into a deb? I'm looking for something similar to the PKGBUILD in ArchLinux which can be ...
3
votes
3answers
1k views

Joining MP3 files losslessly

I have a bunch of MP3 files and I have their paths grouped in a text file. Is it possible to join the relevant MP3 files based on the paths in the text file?
2
votes
0answers
558 views

How can I search for the fastest update server on the command line? [duplicate]

Possible Duplicate: How do you select the fastest mirror from the command line? This is easily done through the GUI, but can it be done from the command line? I have a BASH script for ...
8
votes
1answer
13k views

Command to check graphics device and graphics driver

Is there a utility or terminal command to tell you what graphics device and driver you are using?
9
votes
4answers
2k views

Enable networking without the gnome-applet

I've switched to XMonad as my window manager. Sometimes when I put my laptop to hibernate, it's hanging and won't shut down. I have to force it off by pressing the powerbutton for 5 seconds. After I ...
1
vote
0answers
461 views

Fonts in terminal overlapping [duplicate]

Possible Duplicate: Why are letters overlapping in the terminal? I'm having a problem with ubuntu where the characters are overlapping each other. How do i set it back to default?
7
votes
1answer
404 views

Can I call the GNOME restart confirmation prompt from the command line?

When I click --> Restart, the following prompt appears: Can I cause this to appear from the command line?
4
votes
1answer
456 views

Equivalent to yum history?

Is there an equivalent to yum history command in ubuntu? Im aware that i can just look at the apt logs, but im looking for something that will list them all in the command line, and then enable me to ...
1
vote
1answer
612 views

What background image do you use on your terminal? [closed]

What images/styles do you use for your terminal profile? I'm looking for a visual upgrade from the stock style.
15
votes
4answers
37k views

Opening the file browser from terminal

What's the command to open the file browser? I want it so that I can assign a keyboard shortcut to open a specific folder.
9
votes
2answers
9k views

Start Transmission in the background

Is there a command I can use to start Trasmission in the background?I added Trasmission to the list of aplications started at startup. Every time after log in the the trasmission window pops up and ...
2
votes
2answers
4k views

Auto-login to console as root - no Xserver

I'm setting up a PC for a very specific purpose. It's going to do some stuff deep underwater... round about 3km. We don't fear fish hijacking the box locally ;). I'm trying to set up a login: no ...
4
votes
2answers
31k views

How to update Ubuntu terminal?

How to update Ubuntu terminal?
18
votes
5answers
17k views

Cron.hourly won't run

Ok, So I've made my script, I dropped it in /etc/cron.hourly then I chmod 777 the file but it won't run (automatically). If I manually run it, it works fine. Do I need to do anything else?
8
votes
3answers
358 views

Why does redirection to the same file truncate the file?

Normally we use a different file to redirect the output. For example : cat < first > temp In this command the contents of first are redirected to temp instead of the standard output. Then ...
17
votes
4answers
8k views

Use Network-Manager to connect to a WiFi Access Point on the command-line

I'd like to connect to a wireless access point from the command-line. Ideally, I'd only need the name of the AP. But the hardware-address would work as well. I know I can use nmcli to connect to a ...
6
votes
1answer
336 views

Upgrading to 10.10 has made the terminal go crazy

I asked this question on the unix/linux SE and someone suggested I try my luck here. The problem is this: since upgrading to 10.10, the terminal has gone a little funny. Here's a picture of the ...