A family of Unix-like 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

67
votes
12answers
74k views

How to start GUI linux programs from the command line, but separate from the command line?

I've searched for this before, but have never been able to find an answer. In Windows, if I have a console window open, type winmine, and press enter, Minesweeper will appear, completely separate ...
84
votes
2answers
185k views

How do I get Java support on Google Chrome in Linux?

Is there a way to run Linux Google Chrome with Java support?
45
votes
3answers
21k views

Convert a PDF to greyscale on the command line in FLOSS?

I have a colour PDF file, and I'm going to print it out and then photocopy it in black and white. I'd like to know what it's like in B&W before photocopying it. Is it possible to 'greyscale' a PDF ...
38
votes
6answers
29k views

How can I diff two XML files?

On Linux, how could I generate a diff between two XML files? Ideally, I would like to be able configure it to some things strict, or loosen some things, like whitespace, or attribute order. I'll ...
62
votes
3answers
33k views

scp between two remote hosts from my (third) pc

I have two remote hosts. host1-> 10.3.0.1 host2-> 10.3.0.2 Both run an ssh server. The ssh server listens on port 22 in host1 and on port 6969 in host2. Now, using my local machine, I need to copy ...
20
votes
1answer
11k views

Making 256-color AND Line drawing characters both work in PuTTY

I'm having trouble setting up PuTTY with Ubuntu. I'm trying to get line characters to work in aptitude as well as 256-color support, but can only get one or the other. Ubuntu Config Using 64-bit ...
48
votes
11answers
21k views

What is the relationship between Unix, Linux, Ubuntu, Debian and Android?

What is the relationship between Unix, Linux, Ubuntu, and Debian? I suspect they are all Operating Systems that are based upon one another - similar to how Windows is based on DOS. Is my suspicion ...
20
votes
2answers
27k views

How to change console keymap in Linux?

I'd like to exchange Esc and CapsLock in console (not in X, and use xev), how can I do it? My OS is Ubuntu.
46
votes
7answers
78k views

How to list folders using bash commands?

Is there any way to list just the folders in a directory using bash commands? ( as the ls command lists all the files and folders )
35
votes
5answers
58k views

Good block size for disk-cloning with diskdump (dd)

I use dd in its simplest form to clone a hard drive: dd if=INPUT of=OUTPUT However, I read in the manpage that dd knows a blocksize parameter. Is there an optimal value for the blocksize parameter ...
32
votes
5answers
5k views

Windows vs Linux Local Time?

Ever since I started using Linux in dualboot with Windows I noticed that when I rebooted the machine, the time on the other OS was wrong, e.g. it was 12:00 on Linux, then I rebooted and on Windows it ...
56
votes
4answers
45k views

What does load average mean in unix/linux?

If I run uptime, I get something like this: 10:50:30 up 366 days, 23:27, 1 user, load average: 1.27, 2.06, 1.54 What do those numbers on the end mean? The man page tells me it's "the load ...
38
votes
2answers
44k views

Show only current directory name (not full path) on bash prompt

The way my bash prompt is currently configured, it shows the whole path to the current directory. This is annoying when I'm deep inside a directory tree, as the prompt becomes so long that every ...
19
votes
5answers
18k views

SSH access to office host behind NAT router

I would like to access the ssh port of my office linux host from home. Unfortunately the host is located behind a NAT router. So, the IP address is not publicly available. There is however access to ...
50
votes
7answers
46k views

How to throttle bandwidth on a Linux network interface?

Is there a way to constrain the bandwidth on a NIC in linux? I'd like to be able to simulate an arbitrarily slow connection.
34
votes
10answers
38k views

How to know which Linux Distribution I'm using?

How to know which Linux Distribution I'm using? uname -a gives Linux xxxxxx.net 2.6.9-42.0.3.EL.wh1smp #1 SMP Fri Aug 14 15:48:17 MDT 2009 i686 i686 i386 GNU/Linux How can I know this is Ubuntu/...
23
votes
4answers
27k views

Can I hibernate Linux without a swap partition?

I hadn't set up a swap partition on my PC, because a) I have plenty of RAM (8 GB) and b) I have large harddrives that I didn't want to chop into tiny pieces, so my smallest partitions are 50 GiB, and ...
13
votes
5answers
66k views

How to boot a Linux live USB on a Mac?

I have a USB stick with a Fedora 11 live environment on it. It's booting fine on 3 PCs where I've tried it. But I can't get it to boot on a Mac (Intel). When pressing the alt key (or command key, I ...
23
votes
2answers
39k views

Can I make a script always execute as root?

How to make a script execute as root, no matter who executes it? I read about setuid but I'm not sure how to do this. I'm using Linux, Ubuntu 12.04 LTS.
20
votes
5answers
21k views

Choice of filesystem for GNU/Linux on an SD card

I have am embedded ARM-based system running on an SD card. It's currently Debian GNU/Linux using ext3 as filesystem. As I'm about to reinstall the system, I started wondering about changing to a more ...
16
votes
4answers
14k views

TTY with 256 colors?

With URxvt and xterm it is possible to use a virtual terminal supporting 256 colors instead of only eight. Since my Intel GMA graphics card is well-supported by the KMS framebuffer driver, I am ...
27
votes
5answers
51k views

Boot from USB using GRUB

My friend's laptop was in a car accident (he's fine!). However the laptop is very old its an Acer Aspire 1520 the CD-rom drive is broken and there is no floppy drive. I made him a USB boot before I ...
20
votes
11answers
19k views

Undo the Linux trash command

Can we undo operations done in a terminal, for example, file deletion through rm? Solutions obtained: Aliasing Undelete utilities Backup utilities LibTrash Versioning (FUSE)
27
votes
3answers
18k views

Ensuring new files in a directory belong to the group

I want to create a shared directory when a number of users (all belong to say mygroup) can create and edit files. I would like all files in this directory and subdirectory to belong to mygroup I have ...
24
votes
2answers
6k views

How do I recover a form in Firefox *without* installing a plugin? [duplicate]

Possible Duplicate: How to recover form information for a webpage in Firefox I typed a couple of paragraphs on a discussion board, but when I clicked the submit button, the site was undergoing ...
40
votes
2answers
25k 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?
38
votes
3answers
3k views

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

What does the rc mean?
28
votes
6answers
52k views

command not found when using sudo

There are a few question on the site that seem related to my problem but I could not find a solution in any of them. My operating system is Ubuntu 12.04. I have mvn installed in /tools/noarch/apache-...
18
votes
2answers
67k views

How to route only specific subnet (source ip) to a particular interface?

How to route only specific subnet (source ip) to a particular interface? OS: Linux I know I can do easily by destination IP by using something like route add 1.2.3.4/24 dev eth4 but I do not ...
11
votes
1answer
33k views

How can I get multiple video cards to work on linux?

I installed fedora 12. I have 2 ATI cards that I used to use on windows to run 4 monitors. A recurring problem has been to get them detected in linux. Only my secondary card is picked up linux. When ...
34
votes
3answers
51k 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 ...
13
votes
4answers
14k views

How to correct 512-byte sector MBR on a 4096-byte sector disk?

Final update: I already knew what I needed to do to fix this problem; I just didn't know how to do it. I was hoping there would be some ready-made tool to do that automatically - but couldn't find ...
7
votes
4answers
6k views

Route the traffic over specific interface for a process in linux

Is it possible to route the traffic used by a process over a specific interface? For example, network traffic by download application should always use the interface wlan0 whereas all other ...
48
votes
5answers
10k 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 ...
21
votes
7answers
5k views

zero fill vs random fill

Many tutorials suggest that i should fill a disk with /dev/urandom instead of /dev/zero if i want it to be unrecoverable. But I don't quite get it, how can a disk still be recoverable after being zero-...
11
votes
3answers
21k views

Create Virtualbox image of a physical partition

I've a drive with Fedora and Windows 7 on different partitions with dual boot. Now, while running Fedora, I'd like to suck up the Windows partition and create an image I can run in VirtualBox - how ...
6
votes
9answers
52k views

How to find virtual memory size and cache size of a linux system?

Is there any command to get virtual memory size, cache size and front side bus speed of a linux system? Is swap in linux same as virtual memory?
14
votes
8answers
8k views

Pushing my PS1 prompt over ssh

I use a specific PS1 prompt that I like. I share a few logins with other other people on a few different servers. I was wondering if there was a way to specify in my local bash profile a remote prompt ...
8
votes
2answers
14k views

What are the nuisances of creating a bootable Windows 7 USB drive from linux with ms-sys or dd?

I have been reading some web pages and posts (here and in other forums) about how to create a Windows 7 installation USB media from linux (to install Windows 7) I asked in TechNet about this, and I ...
8
votes
3answers
3k views

Remote into Linux workstation behind a firewall

Let's say I have a Linux workstation at work, behind a firewall. So even though I may have a remote access server set up on it (such as the most excellent NoMachine NX Server), I can't access it from ...
23
votes
8answers
122k views

How to get an inactive RAID device working again?

After booting, my RAID1 device (/dev/md_d0 *) sometimes goes in some funny state and I cannot mount it. * Originally I created /dev/md0 but it has somehow changed itself into /dev/md_d0. # mount /...
21
votes
3answers
1k views

Music player for linux

I need to choose a music player to use under linux after having fallen out with Banshee*. What would you recommend based on these requirements: Ability to import/export ratings Automatically picks ...
18
votes
4answers
26k views

Using multiple USB webcams in Linux

Running more than one USB webcam in Debian/Linux results in the the following error: libv4l2: error turning on stream: No space left on device VIDIOC_STREAMON: No space left on device What ...
17
votes
3answers
7k views

How can I do Ctrl-Z and bg in one keypress to make process continue in background?

I follow this pattern of suspending the task and then letting it to continue too often with the Ctrl-Z bg sequence. I was wondering is there any way to compress that to single keypress? My shell is ...
16
votes
2answers
2k views

Tab-completion with directories/links

I have this problem with tab-completion in terminal in both archlinux and ubuntu: I have a link which links to a directory named "something" in my home directory. Now when I open a terminal and want ...
15
votes
5answers
5k views

Steganography software

Do you know some good (better if FOSS and cross-platform) steganography software that runs on GNU/Linux? The features I'm searching are: steganography software (better if FOSS and cross-platform) ...
10
votes
2answers
18k views

How do I verify that TRIM is activated? (Linux)

I have kernel*.32 and I use ext4 on my drive. Now I just don't know how to check if trim support is enabled? Found this: http://blog.patshead.com/blog/2009/12/a-quick-and-dirty-wipersh-fix-for-...
9
votes
3answers
5k views

Watch Filesystem in Real Time on OS X and Ubuntu

I'm looking for a CLI tool which will watch a directory and spit out the names of files that change in real time. some_watch_command /path/to/some/folder | xargs some_callback I'm aware of inotify ...
6
votes
5answers
6k views

Which torrent apps work headless (from command line only)?

There's a question on here about what torrent apps work well remotely, but I'm hoping to find out one that works well through a command line interface, preferably with no GUI. What torrent apps ...
12
votes
2answers
2k views

SandForce SSD encryption - security and support

I'm currently thinking about buying a ThinkPad X201 and equip it with a SSD drive. Now, to protect my data I always used Linux with LUKS full disk encryption on my laptops. However, as stated in ...