Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

33
votes
4answers
26k views

How can I avoid SSH's host verification for known hosts?

I get the following prompt everytime I try to connect a server using SSH. I type "yes", but is there a way to aovid this? The authenticity of host '111.222.333.444 (111.222.333.444)' can't be ...
33
votes
4answers
7k views

Linux equivalent command for “open” command on Mac/Windows?

Coming from Mac OS X, you can type: $ open yourfilehere.txt and your file will open just as if you had opened it from Finder. On Windows, one can type: > start yourfilehere.txt and it will ...
33
votes
2answers
29k views

Can I create an SSH user which can access only certain directory?

I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously. I would like to create another ...
32
votes
8answers
26k views

Best way to transfer files over a LAN between two Linux computers

I want to transfer files (a music folder) between two Linux computers. After searching for the best way to do this, I've seen that there are lots of ways of doing this. I know this has been asked a ...
32
votes
8answers
25k views

ffmpeg: create a video from images

Is it possible to use ffmpeg create a video from a set of sequences, where the number does not start from zero? For example, I have some images [test_100.jpg, test_101.jpg, test_102.jpg, ..., ...
32
votes
5answers
13k views

Getting macro keys from a Razer BlackWidow to work on Linux

I picked up a Razer BlackWidow Ultimate that has additional keys meant for macros that are set using a tool that's installed on Windows. I'm assuming that these aren't some fancypants joojoo keys and ...
31
votes
13answers
44k views

In Google Chrome on Linux, where is the flv if not in /tmp?

I like to keep videos because I like buffering them and then playing them back-to-back in my media player, I want to be able to stop/restart my browser without losing all the buffered video, and ...
31
votes
5answers
19k views

Is there a way to show notification from bash script in Ubuntu?

Most of the application can show nicely formatted notification on events that appear on top right corner of the screen. I'm about to write a bash script that will do fairy long processing in the ...
31
votes
3answers
26k views

How do you check how much power a USB port can deliver?

Some laptops have a special USB port that can deliver more power than the other ones. However it is not always easy to identify which one is the good one, nor how much power it can deliver. So is ...
31
votes
3answers
1k views

Say`vimrc`or `screenrc`, what does the `rc` mean?

What does the rc mean?
31
votes
4answers
26k views

VirtualBox to use dual monitors

I am am running Kubuntu Hardy Heron, with a dual monitor setup, and have VirtualBox on it running Windows XP in seamless mode. My problem is, I can't get virtualbox to extend to the second monitor. ...
31
votes
10answers
11k views

What's a good solution for file-tagging in linux?

I've been looking for a way to tag my files and search/filter them based on those tags. Here are my (updated) requirements : any file readable by the user can be tagged freely a user can search ...
30
votes
15answers
13k views

What is Gnome / KDE etc?

I have been on Windows my entire life. Without getting too technical, what are these things? When I search on the net, I get some technical results. I simple do not understand what these things are! ...
30
votes
7answers
36k views

What's the easiest way to sniff TCP traffic data on Linux?

I want a simple way to show all the TCP data (not the TCP headers or anything else) going over any interface on my Linux box. For instance, I want a magical command that if I do: ...
30
votes
5answers
3k views

What is the equivalent of Linux's “~” (tilde) in Windows?

In Linux, we can go to the user home by entering the tilde (~) character after cd: cd ~ How to do the same in Windows? Each time, I need to type: cd C:\Document and Settings\freewind That's too ...
30
votes
4answers
18k views

How to make cut/copy/paste in GVim on Ubuntu work with Ctrl+X,Ctrl+C,Ctrl+V?

By default, the cut/copy/paste short-cuts in GVim on Ubuntu are: Cut "+x Copy "+y Paste "+gP I would like to use control key combos in GVim, like I use in Firefox and othe gnome ...
30
votes
3answers
21k views

Ubuntu shutdown fail “* Killing all remaining processes…”

I have a fresh installation of Ubuntu Server. "reboot" works, but shutdown fails on the * Killing all remaining processes... step. I am using: sudo shutdown now After the failure, indicated by ...
30
votes
2answers
44k views

Where does Google Chrome for Linux store user specific data?

Where does Google Chrome for Linux store user specific data such as bookmarks ? I can't find a .chrome or .google directory under my home directory, any other directory I should look at ?
30
votes
6answers
8k views

What happens if mv is interrupted?

What happens if the Linux mv command is interrupted? Say, I'm moving a whole directory to some other place and interrupt it while it's moving. Will the source directory still be untouched?
30
votes
8answers
6k views

Is flash drive wear a significant issue?

My netbook has a flash drive instead of a hard disk drive, and I'm using Ubuntu Netbook Remix with ext3 as the file system. I've read some articles concerning flash drive wear, and the main concerns ...
29
votes
9answers
33k views

Remove a certain line from Bash history file

How can I remove a certain line from history's database?
29
votes
4answers
7k views

tmux disregarding the configuration file

I just installed tmux on Ubuntu 10.04 and tried to remap the prefix key to C-a by creating the file ~/.tmux.conf with these lines: set-option -g prefix C-a unbind-key C-b When starting tmux, both ...
29
votes
5answers
42k views

Bash script to delete files older than x days with subdirectories

I'm trying to delete a ton of files older than x days. Now I have a script to do that find /path/to/files* -mtime +10 -exec rm {} \; But this will also delete the subdirectories. There are a ton ...
29
votes
1answer
31k views

What is $* and $# in Linux?

What do the following environment variables in Linux mean? What is $* (dollar sign followed by an asterisk)? What is $# (dollar sign next to a hash mark/number sign/octothorpe/pound sign)?
29
votes
3answers
24k views

How can I recursively copy files by file extension, preserving directory structure?

At the Linux command line, I'd like to copy a (very large) set of .txt files from one directory (and its subdirectories) to another. I need the directory structure to stay intact, and I need to ...
29
votes
3answers
3k views

Can history files be unified in bash?

I routinely run multiple screen sessions on my Linux desktops and servers. A problem with this is that when I grep through my command history, I find I issued a command in a different session, and ...
28
votes
5answers
857 views

Deleting millions of files

I had a dir fill up with millions of gif images. Too many for rm command. I have been trying the find command like this: find . -name "*.gif" -print0 | xargs -0 rm Problem is, it bogs down my ...
28
votes
3answers
71k views

How does one change user's home directory in Ubuntu 9.04?

Does anyone know how I might change my home directory in the shell please?
28
votes
4answers
18k views

Is there a way to find out what application using most of bandwidth in Linux?

I'm looking for an utility that could show me how much of a bandwidth each process are using. It should just print the data and exit as I want to feed that list into conky.
28
votes
7answers
22k views

Top causes of slow ssh logins

I'd love for one of you smart and helpful folks to post a list of common causes of delays during an ssh login. Specifically, there are 2 spots where I see a range from instantaneous to multi-second ...
28
votes
5answers
11k views

How can a linux kernel be so small?

An ordinary stable 3* kernel is about 70 mb now. But there are little linux distributions of 30-10 mb with software and other stuff running out of the box. How can the linux kernel be so small in ...
28
votes
3answers
11k views

Bad font anti-aliasing in Ubuntu

I'm switching from Fedora 8 to Ubuntu 9.04, and I can't seem to get it to get a good font anti-aliasing to work. It seems that Ubuntu's fontconfig tries to keep characters in integral pixel widths. ...
28
votes
6answers
15k views

Triple (3) Monitors under Linux

I have a 3 monitor setup (each 1680x1050) via an Nvidia NVS440 (2 GPUs, 2 outputs per GPU totalling 4 outputs); this works fine under Windows XP,7 but caused considerable headaches under Linux (Ubuntu ...
27
votes
4answers
2k views

How to create a file which is named like a command line argument?

I was wondering how to make a file named as a flag, e.g., if I wanted to make a folder named -a, what commands would do the trick? I tried mkdir '-a', mkdir \-a, and neither worked. I'm on Ubuntu.
27
votes
5answers
27k views

what does the asterisk mean after a filename if you do ls -l

I've done an ls -l inside a directory, and my files are displaying like this : james@nevada:~/development/tools/android-sdk-linux_86/tools$ ll total 9512 drwxr-xr-x 3 james james 4096 2010-05-07 ...
27
votes
4answers
26k views

When ssh'ing, how can I set an environment variable on the server that changes from session to session?

When I ssh into a server, how can I pass an environment variable from the client to the server? This environment variable changes between different invocations of ssh so I don't want to overwrite ...
27
votes
2answers
4k views

How to rate-limit a pipe under linux?

Is there a filter which I could use to rate-limit a pipe on linux? If this exists, let call it rate-limit, I want to be able to type in a terminal something like cat /dev/urandom | rate-limit 3 -k | ...
27
votes
3answers
14k views

Set background image in xmonad

I have just switched from Fluxbox to giving xmonad a go, and I am definitely liking it. However, the one thing I haven't managed to do is to change my desktop background. I am using Ubuntu 8 (uh, ...
27
votes
6answers
22k views

What is the conventional install location for applications in Linux?

I'm currently installing NetBeans, and the default install directory is /home/thomasowens/netbeans-6.8. I'm not a fan of that location, so I'm looking at /etc, /bin, /usr/bin, and /sbin. Does Linux ...
26
votes
3answers
2k views

Why does a failed linux login take so long? [duplicate]

Possible Duplicate: Why would an incorrect password attempt take a lot longer to process than a correct one? When you get the correct login credentials, you are logged in immediately. When ...
26
votes
6answers
19k views

How many cores I am using on a Linux Server?

I am just wondering how I can find out in bash how many CPU cores a user is now using on a Linux Server? I am submitting a fair amount of background jobs to the server, so I'd like to write a bash ...
26
votes
2answers
55k views

How do you set a password for transmission-daemon, the BitTorrent client server?

The config file is ambiguous, and keeps getting overwritten when you restart the daemon in Debian, anyway. In /etc/transmission-daemon/settings.json, there are these options: rpc-username ...
26
votes
8answers
78k views

Manually closing a port from commandline

I want to close an open port which is in listening mode between my client and server application. Is there any manual command line option in Linux to close a port ?? NOTE: I came to know that "only ...
26
votes
4answers
16k views

How do I find out what processes are accessing the hard disk in a GNU/Linux-based system?

I'm looking for the equivalent to top for disk access, so I can tell which process(es) are currently reading and/or writing to disk. I'm currently using Ubuntu, but I imagine there's a standard tool ...
26
votes
3answers
24k views

If I know the PID number of a process, how can I get its name?

If I have the PID number for a process (on a UNIX machine), how can I find out the name of its associated process? What do I have to do?
26
votes
1answer
39k views

How do I unzip a tar gz archive to a specific destination?

I want to unpack a .tar.gz file to a specific directory. The archive file is in /root/Documents. I want to unzip it into /root/Desktop/folder. The folder structure in zipped file should be preserved ...
26
votes
4answers
45k views

mount dev, proc, sys in a chroot environment?

I'm trying to create a Linux image with custom picked packages. I followed the guide here http://www.olpcnews.com/forum/index.php?topic=4766.0 However, when I tried to install some packages, it ...
26
votes
5answers
2k views

Does running commands verbosely make them slower?

I've found myself using the -v flag for lots of applications less and less (especially for trivial stuff like tar and cp). However, when I did and I was, say, unzipping a large file, it would take ...
26
votes
8answers
6k views

How do you track which packages were installed on Ubuntu (Linux)?

(This question is very similar to 10458. It was suggested that Fedora and Ubuntu/Debian are different enough to warrant different answers.) As I use any Ubuntu setup I gradually install a number of ...
26
votes
4answers
36k views

When should I use /dev/shm/ and when should I use /tmp?

When should I use /dev/shm/ and when should I use /tmp? Can I always rely on them both being there on Unices?