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

37
votes
3answers
23k 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 ...
37
votes
5answers
16k 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 ...
37
votes
6answers
28k 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 ...
36
votes
5answers
21k 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 ...
36
votes
3answers
49k 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?
36
votes
4answers
50k views

No option to hibernate/shutdown in GNOME 3?

I have installed Fedora 15 Alpha with GNOME 3. Everything is working fine. However, I can't see any option to hibernate or shutdown. In the top panel when I click my user name, I only have one option ...
36
votes
2answers
49k 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 ?
36
votes
1answer
10k views

What's like OSX's pbcopy for Linux

In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with ...
35
votes
7answers
3k views

How can a Linux OS be “based on” another Linux OS?

I've been looking through quite a number of Linux distros recently to get an idea of what's around, and one phrase that keeps coming up is that "[this OS] is based on [another OS]". For example: ...
35
votes
8answers
3k views

Why is -r recursive necessary when copying a directory in Linux?

My question is why is it required to use the -r (recursive) flag when making a copy of a directory? I.e., why do this: $ cp -r dir1 copyDir1 When would I not want this behavior when copying a ...
35
votes
4answers
8k 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 ...
35
votes
1answer
36k 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)?
35
votes
12answers
12k 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 ...
34
votes
5answers
117k views

Checking what PHP version I'm running on Linux?

I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
34
votes
3answers
19k views

How to analyse disk usage in command line linux?

du and df are nice, but I don't know how to filter the data they provide the way I do with SequoiaView. I would like to know which are the largest folders and the largest files in a glance.
34
votes
8answers
32k 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 ...
34
votes
8answers
34k 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, ..., ...
34
votes
4answers
9k 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 ...
34
votes
3answers
31k 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 ...
34
votes
5answers
28k 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. ...
34
votes
2answers
35k 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 ...
34
votes
3answers
2k views

Palindrome passwords disallowed—why?

I tried to change a Linux password to "sitonapotatopanotis" and got this error: BAD PASSWORD: is a palindrome Why does this rule exist?
33
votes
12answers
3k views

How do I remove a file in Linux whose name looks like it's ONLY a hyphen, as in “-”

I've tried rm -- - rm "-" rm "\-" rm \- Gave Perl a shot ~$ perl -e '$junk = glob("-"); chomp $junk; print "$junk\n"; `rm $junk`;' - rm: cannot remove `-': No such file or directory ...and... ...
33
votes
13answers
47k 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 ...
33
votes
5answers
4k 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 ...
33
votes
2answers
4k views

How come one user can delete another user's 755 files?

I have a backup upload script that scp’s files to another server using the user upload. Another script on the target server then chown’s these to another user and sets the file mode to 755. If I then ...
33
votes
4answers
20k 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 ...
33
votes
3answers
6k views

What does the 'rc' in `.bashrc`, etc. mean?

Well, this is embarrassing. I feel like I just realised I don't know a loyal colleague's name after working with them for 10 years. "Hey, er... *cough!*, thanks for that great job you did on setting ...
33
votes
5answers
11k views

Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux

When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors: tar: Ignoring unknown extended header keyword `SCHILY.ino' tar: Ignoring unknown extended ...
33
votes
3answers
1k views

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

What does the rc mean?
33
votes
4answers
29k 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 ...
32
votes
6answers
80k views

Test if a port on a remote system is reachable (without telnet)

In the old days, we used telnet to see if a port on a remote host was open: telnet hostname port would attempt to connect to any port on any host and give you access to the raw TCP stream. These ...
32
votes
8answers
27k 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 ...
32
votes
4answers
19k 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.
32
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 | ...
32
votes
6answers
10k 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?
32
votes
3answers
15k 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, ...
31
votes
15answers
14k 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! ...
31
votes
8answers
96k 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 ...
31
votes
4answers
31k 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 ...
31
votes
5answers
13k 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 ...
31
votes
2answers
68k views

Linux - Mount device with specific user rights

How can I mount a device with specific user rights on start up? I still have some problems figuring it out. I would like to mount the divide with uid=1000 and gid=1000. My current entry to the ...
31
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 ...
31
votes
3answers
13k views

How do I execute multiple commands when using find?

I'm trying to run multiple commands on things I have found, how can I achieve this? find . -exec cmd1; cmd2 does not seem to work; it instead runs cmd2 after cmd1 has been executed on every file.
31
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 ...
31
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. ...
31
votes
4answers
7k views

How can I log all process launches in Linux

I would like to get a log of all processes that are launched with the time that they were launched and the arguments they were launched with. Is this possible in Linux?
30
votes
5answers
34k 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 ...
30
votes
4answers
52k views

How to check which timezone in Linux?

Is there a way to check which time zone I'm currently in on Linux?
30
votes
6answers
49k 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 ...