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

23
votes
4answers
41k views

How to check which timezone in Linux?

is there anyway to check which time zone i'm currently in Linux?
23
votes
2answers
4k views

Slight delay when switching modes in vim using tmux or screen

Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After ...
23
votes
5answers
17k views

check the physical health of a USB stick in Linux

How to check the health status of a USB stick? How do I know that a USB is broken beyand repair, or repairable?
23
votes
2answers
36k views

How do I increase VirtualBox resolution past 800x600 in Linux? [duplicate]

Possible Duplicate: Ubuntu on VirtualBox can only show resolution of 800x600 - how to change it? No matter what I do I cannot get the resolution past 800x600. If I am using a Windows ...
23
votes
2answers
18k views

Can GNU Grep output a selected group?

Is it possible to use GNU grep to get a matched group from an expression? Example: echo "foo 'bar'" | grep -oE "'([^']+)'" Which would output "'bar'". But I would like to get just "bar", without ...
23
votes
1answer
3k views

Is there a way to make bash more TAB friendly?

I use bash on both my Mac and as my cygwin shell. Overall, I'm quite pleased with it. My one complaint however is that its TAB completion isn't as good as Windows Command Line TAB completion. For ...
23
votes
5answers
13k views

How to use different network interfaces for different processes?

I have two network interfaces on a Linux PC, and I need to manually set the interface that a given process will use. The program (Twinkle softphone) does not have a similar option, so I believe that ...
23
votes
4answers
10k views

What is the different between 'locate' and 'find' in Linux?

Why there are two so similar command in Linux? and normally what are the circumstances to use each of them?
23
votes
2answers
1k views

Is it possible to compile a Darwin Distro from source, like you can a build a Linux Distro?

I have read through and undertaken Linux From Scratch (and BLFS) and I was wondering, can I follow this guide to create a Darwin Distro by substituting the xnu kernel? Would the process be vastly ...
22
votes
2answers
13k views

What does Linux do with existing files in a mount point?

If I attempt to mount a folder that already has files in it, does linux give me an error message or go ahead and show both the mounted filesystem and the files that were already in the folder?
22
votes
4answers
27k views

How do I get the size of a Linux or Mac OS X directory from the command-line?

What command do I use to find the size of all the files (recursively) in a Linux or Mac OS X directory?
22
votes
4answers
67k views

How can I add a regular user to the sudoers file?

How can I add more users to the "sudoers" file?
22
votes
5answers
2k views

Sudo vs root; any actual differences?

I'm working with a support member for a product, and he insists that I need to be root to install a series of patches, and that sudo won't work; he doesn't provide a reason but seems very firm in his ...
22
votes
5answers
1k views

Why doesn't Gzip compression eliminate duplicate chunks of data?

I just did a little experiment where I created a tar archive with duplicate files to see if it would be compressed, to my awe, it was not! Details follow (results indented for reading pleasure): $ dd ...
22
votes
9answers
5k views

How to track LAN usage? (AKA 'top for LAN')

There's an evil application that is eating ALL my upload bandwidth (I'm brazilian, it's only ~35kbps) for like 80% of the time my PC is turned on. I would like to know if there's any way to track ...
22
votes
7answers
40k views

How to auto detect text file encoding?

There are many plain text files which were encoded in variant charsets. I want to convert them all to UTF-8, but before running iconv, I need to know its original encoding. Most browsers have an ...
22
votes
3answers
1k views

Subverting the execute flag on Linux systems. Why is this possible?

Whilst reading this, I found the following exploit: % cp /usr/bin/id ~ % chmod -x ~/id % ls -al ~/id -rw-r--r-- 1 edd edd 22020 2012-08-01 15:06 /home/edd/id % ~/id zsh: permission denied: ...
22
votes
4answers
64k views

How to reinstall GRUB2 EFI?

After successfully updating my bios, something went wrong and I ended up with a blinking cursor on the top left corner of a black screen. No errors, no nothing. The bios now only listed a SATA: ...
22
votes
4answers
7k views

bash watch command with colors preserved

From man watch: Non-printing characters are stripped from program output. Use "cat -v" as part of the command pipeline if you want to see them. So how do I use cat -v if I want to see the ...
22
votes
8answers
33k views

How to extract text with OCR from a PDF on Linux?

How do I extract text from a PDF that wasn't built with an index? It's all text, but I can't search or select anything. I'm running Kubuntu, and Okular doesn't have this feature.
22
votes
2answers
12k views

List files bigger than filesize specified

How can I make ls (or any other particular command) to list me only files bigger than a specific file size?
22
votes
2answers
19k views

Is it possible to install the Helvetica font on linux?

I don't know too much about the licensing issues surrounding fonts, but I would like to install Helvetica on my machine for my own personal use. I haven't been able to find a whole lot about this on ...
22
votes
1answer
33k views

Linux unzip command: Option to force overwrite?

I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace ...
22
votes
9answers
41k views

Any Linux BitTorrent client with support for Magnet links? [closed]

Is there any Linux application (bonus points for being console/headless) that supports Magnet links - like the ones provided now by some famous "bay" for pirate BitTorrent users?
22
votes
6answers
6k views

Pomodoro timer for linux [closed]

Is there good Pomodoro desktop timer for Linux without a lot of dependencies. I know about pomodairo, but it's made with Adobe Air, which I don't want on my Linux (even if it exists for Linux).
22
votes
6answers
1k views

Learning the basics of Linux/Unix [closed]

I would like to learn the basics of Linux; In contrast to tutorials that teach how to do common tasks with Ubuntu or something. I'm looking for a structured introduction, not a reference. Also I would ...
22
votes
5answers
31k views

How can I know the absolute path of a running process?

If I have multiple copies of the same app on the disk, and only one is running, as I can see with ps, how can I know the absolute path to distinguish from the others?
22
votes
2answers
24k views

What is /dev/mem?

Presumably it's somehow related to memory? What would sudo cat /dev/urandom > /dev/mem do? Trash all RAM? All non-kernel virtual memory? None of the above?
22
votes
2answers
1k views

Enable Emacs-like keybindings scheme for all QT applications

As for GTK apps under Gnome environment it's possible to set all applications to use Emacs-like input scheme: $ gconftool --set -t string /desktop/gnome/interface/gtk_key_theme Emacs $ gconftool ...
21
votes
7answers
32k views

Which is more efficient - tar or zip compression? What is the difference between tar and zip?

I'm working in Linux environment and want to know about tar and zip commands. Which is more efficient - tar or zip? I also need to know the differences between the tar and zip commands. Can anyone ...
21
votes
5answers
2k views

Are Linux commands interchangeable with Unix commands?

I find that some commands, for example, ls and pwd, can be used on both Linux and Unix systems. Is it that all Linux commands can be used in the Unix systems, and all Unix commands can be used in ...
21
votes
6answers
40k views

why run a Linux shell command with &?

I am using Red Hat Linux Enterprise version 5. I've noticed people sometimes running commands with a couple of & options. For example, in the below command, there are two & signs. What is the ...
21
votes
6answers
35k views

play mp3 or wav file via Linux command line

I would like to make an alarm system backed by a Ubuntu (no graphical interface) box, which plays various announcement and alarm audio tracks (.mp3 or .wav) via the command line. For example: $ ...
21
votes
2answers
873 views

How to create a directory named '-p' under Linux with Bash? [duplicate]

In Bash, how could I create a directory named -p? mkdir -p failed. mkdir "-p" failed. mkdir "\-p" failed. mkdir \-p failed.
21
votes
3answers
19k views

How to wget a file with correct name when redirected?

So after some time of searching on google and superuser (and scanning man pages) I was unable to find an answer to something that (I think) should be simple: If you go here: ...
21
votes
4answers
21k views

What is effect of CTRL + Z on a unix\Linux application

I was curious and confused that what exactly is the behaviour of CTRl+Z. I know, If a process in running in foreground, and we press ctrl+z, it goes to background. But what exactly happens. Does it ...
21
votes
6answers
41k views

How to get parent PID of a given process in GNU/Linux from command line?

Resolved before asked: cat /proc/1111/status | grep PPid
21
votes
3answers
20k views

How do you find the parent process of a zombie process?

How do you find the parent process of zombie processes? When the child process is something where the parent is not entirely obvious... Is there some way to list processes in tree format or ...
21
votes
14answers
3k views

How to become a Linux superuser? [closed]

What process/reference/book/faq/tutorial/quickstart/primer/etc would you recommend to a lifelong Windows guy who wants to become a Linux superuser? EDIT Perhaps I should provide a little bit of ...
21
votes
3answers
29k views

How to show output on terminal and save to a file at the same time?

I am using: user@unknown:~$ sudo command -option > log to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible? I am using ...
21
votes
7answers
10k views

Linux keylogger without root or sudo! Is it real?

Somebody on Youtube claims to have a keylogger on Ubuntu that was neither executed nor installed as root. The link below shows a demo of it working. http://www.youtube.com/watch?v=Y1fZAZTwyPQ ...
21
votes
9answers
49k views

How to check the health of a hard drive

My SATA drive started clicking and I was unable to access the data. It was not clicking loudly though, like a drive that has already gone bad. After tightening the connections to the hard drive, it ...
21
votes
1answer
19k views

How can I logout an open, remote SSH session?

I sshed into a Linux machine (bash shell) from a public Windows machine (in our lab) and forgot to log out. I'm now back at my seat in another room and I am too lazy to walk back and log out that ...
21
votes
4answers
28k views

Read the contents of a zipped file without extraction?

How can I see the contents of a particular file in an archive without extracting the .zip it is contained within? I'm using the Linux command line.
21
votes
4answers
1k views

Can unexpected power loss harm a Linux install?

I am developing an application on a Linux embedded board (runs Debian) e.g. Raspberry Pi, Beagle Board/Bone, or olimex. The boards works on an environment that the electricity is cut unexpectedly (it ...
21
votes
11answers
72k views

Putty Network Error: Software caused connection abort

I have a strange problem: when I'm using putty ssh connecting to a linux server hosted in vmware on my local Windows-7, I often get the error saying "Network Error: Software caused connection abort" ...
21
votes
7answers
59k views

How do I select all text from a file with nano?

I open a file in Ubuntu nano editor from the comand line and I want to copy all the contents of the file so I can paste it in an another application outside the shell. So far I can only copy using ...
21
votes
4answers
12k views

Is there a linux command like mv but with regex?

For example I want to mv (.*?).sql $1.php, is there a command that lets me specify renaming patterns?
21
votes
6answers
64k views

Add permanent SSL certificate exception in Chrome (Linux)

I have a problem with a website that has an SSL certificate which doesn't correspond to the website domain. Chrome gives me a warning for this website (and rightly so), which I have to ignore ...
21
votes
4answers
2k views

Paint.NET equivalent for Linux?

On Windows, my favorite image editor is Paint.NET. However, on Linux, GIMP is as unfriendly as photoshop despite having less features. (i.e. It takes ages to load, their's far too much stuff). Most ...