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

21
votes
6answers
15k 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 ...
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
2answers
16k views

How do I create a relative symbolic link in Linux?

I need a symlink that resolves relative to the directory it is placed in. What command is used to create such a thing?
21
votes
2answers
10k views

How to have Linux ls command show second in time stamp

Something annoying about ls -l command is it shows only hour and minute for a file(like 08:30). How can I see the second portion(like 08:30:44)? man 1 ls and search for 'second' does not give any ...
21
votes
4answers
13k 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
1answer
27k 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 ...
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 ...
21
votes
1answer
12k views

Ubuntu's /etc/alternatives mechanism

I'm trying to better understand Ubuntu's /etc/alternatives mechanism. The basics are easy: it allow for multiple "providers" to be installed on the same machine, and configures which is the default. ...
21
votes
2answers
1k views

Use vim to edit ANY text on Linux

I come from the Mac world, where I use http://www.hogbaysoftware.com/products/quickcursor to edit text from anywhere in Vim. Is there anything like that on Linux ? I'm already using "It's All Text" ...
20
votes
5answers
7k views

What does the little squiggly ~ do in Linux?

I have two instances of it being used and I am wondering what each does: service=~ mv ~/Desktop/Service$version.tgz $service What does the little squiggly ~ do? Then, after that that, what would ...
20
votes
14answers
23k views

Linux command to repeat a string n times

Is there any built-in linux command that allows to output a string that is n times an input string??
20
votes
4answers
29k views

How to type special characters in Linux?

In windows there is possibility to type from keyboard special signs by holding alt key and typing a few numbers, that depends on with sign you want to use. Does it work with linux in the same way?
20
votes
4answers
51k views

How to gzip multiple files into one gz file?

I have 100 files: cvd1.txt cvd2.txt ... cvd100.txt How to gzip 100 files into one .gz file so that after I gunzip it, I should have cvd1.txt, cvd2.txt ... cvd100.txt separately? Thanks for your ...
20
votes
7answers
32k views

Can I boot Linux from a VHD?

Is there some way to boot a Linux system from a VHD in Windows 7? If there is a way, how do I put it there in the first place? EDIT: To clarify, I'm not trying to run Linux in a VM. I'm trying to ...
20
votes
4answers
25k views

How do I find (and kill) process running on a certain port? [duplicate]

Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on ...
20
votes
2answers
1k views

What is /usr/bin/[ and how do I use it?

I was looking at coreutils and found this as one of the files included as part of coreutils: /usr/bin/[. What is [ and what does it do? It is an executable. I just don't know what it does or how to ...
20
votes
4answers
12k views

Looping Through Subdirectories and Running a Command in Each

I have a set of repositories sorted into directories based on their VCS (Git, Mercurial, SVN). With Subversion I was able to run svn update * in the parent directory and it would loop through each ...
20
votes
6answers
13k views

On Linux/Unix, does .tar.gz versus .zip matter?

Cross-platform programs are sometimes distributed as .tar.gz for the Unix version and .zip for the Windows version. This makes sense when the contents of each must be different. If, however, the ...
20
votes
3answers
5k views

In Linux, how do I truncate command-line output?

If I grep -nr sumthin * in my source code directory, it also spews out very long lines from minified JavaScript or CSS files. I want to get just the first 80 characters per line. For example, a ...
20
votes
2answers
19k views

Linux equivalent to robocopy?

It's kind of funny, there are a lot of ways in which Linux command line tools are vastly superior to Windows ones, but one thing I have not found an equivalent to is robocopy. Robocopy is way more ...
20
votes
3answers
9k views

How to: Unlimited Bash/shell history?

Is there a way to define an unlimited history in Bash ?
20
votes
6answers
55k views

Modify fstab entry so all users can Read and Write to an EXT4 Volume

I have an Ubuntu 10.04 box with an EXT4 partition. This partition is set to automatically mount in /etc/fstab. For the purposes of this post, we'll call it: /media/foo. Unfortunately, only root ...
20
votes
4answers
58k views

How to update Google chrome in Ubuntu?

How to update Google chrome in Ubuntu?
20
votes
2answers
12k views

Measure script execution time

In bash shell, is there a simple way for me to monitor the time taken to run a script and output the time taken?
20
votes
9answers
29k views

Flow chart software for Linux? [closed]

Been using Visio at work to do flowcharts, and I'm liking how easy it is to do overall, notably creating and linking shapes. I'm trying to find something for Linux that works the same way, or at ...
20
votes
3answers
14k views

What's difference between group admin and adm?

There's two similar groups in ubuntu: admin and adm, I found that /var/log/apache2 is in the adm group, and default sudoers includes admin group, what's difference between the two?
20
votes
2answers
7k views

How to tell if linux process is 64bit

Given the pid of a process that's running on a x64 linux, how do I tell if it's running a 32 or 64 bit binary? I can look at the binary it's running out of 'ps' and do a file on that but I was ...
20
votes
3answers
930 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 ...
20
votes
3answers
42k views

How do I log out of `sudo su`?

I'm using sudo su to start mysql and do some homework with it. When I finish with mysql (or any other command), then I'm still in sudo. How do I "log out", so my prompt changes back from # to $?
20
votes
2answers
33k views

Allow specific user permission to read/write my folder

I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that? chown wouldn't do it because I still want to be able to be the owner of ...
20
votes
4answers
22k 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 ...
20
votes
3answers
9k views

Does rm -f follow symbolic links?

I have a directory like this: $ ls -l total 899166 drwxr-xr-x 12 me scicomp 324 Jan 24 13:47 data -rw-r--r-- 1 me scicomp 84188 Jan 24 13:47 lod-thin-1.000000-0.010000-0.030000.rda ...
20
votes
7answers
129k views

boot Windows from GRUB rescue

This is my situation: installed Ubuntu without a CD (using unetbootin) dual boot installation (Windows XP+Ubuntu) didn't like the installation and decided to boot into Windows and delete the Linux ...
20
votes
5answers
14k views

Save multiple gnome-terminal layout?

I have multiple gnome-terminal windows open. Is there a way to save the settings (window position, no. of tabs, title etc). across OS reboots ?
20
votes
10answers
5k views

Is there a Windows or Linux equivalent of Soulver calculator application? [closed]

I've just been shown a brilliant calculator app called Soulver which is only available on Mac OS X Maths on a Mac as it should be Soulver is a new kind of calculator application which uses a ...
20
votes
4answers
31k views

What's the difference between .profile and .bash_profile, and when do you configure which? (Mac) [duplicate]

Possible Duplicate: Difference between .bashrc and .bash_profile What's the difference between .profile and .bash_profile, and when do you configure which? I.e if I configure the ...
19
votes
14answers
42k views

How do I check whether I am using KDE or Gnome?

or maybe something else? I am using Redhat OS.
19
votes
4answers
24k views

Delete matching files in all subdirectories

How can I remove all .swp files in all of my subdirectories under Linux?
19
votes
4answers
1k views

Should I kill zombie process in my system?

Since I'm newbie in Linux/Unix systems and just read about zombie processes, I have one question. I have 10 of them right now. Do I need to kill them and if yes, why? Are they a load on my system? ...
19
votes
6answers
5k views

gitk looks ugly / doesn't honor theme settings

I'm running Xubuntu, (actually linux mint with xfce on top, but I suppose it's essentially the same thing) I set my appearance theme to (a modified version of) MurrinaStormCloud, but if I run gitk, ...
19
votes
1answer
58k views

Give write permissions to multiple users on a folder in Ubuntu

There is a folder that is owned by user tomcat6: drwxr-xr-x 2 tomcat6 tomcat6 69632 2011-05-06 03:43 document I want to allow another user (ruser) write permissions on document folder. The two ...
19
votes
13answers
3k views

Tiling Window Manager

I've been looking into tiling window managers because I'm tired of manually positioning and resizing all my windows whenever I want to see some information side by side. However, the tiling window ...
19
votes
2answers
1k views

Linux Mint doesn't boot after creating a swap partition

When I was creating my Linux hard drive, I skipped creating a swap partition, thinking that 4GB would be enough RAM. Now, I think I do need a swap partition. I asked some people on IRC how to do this, ...
19
votes
6answers
1k views

Should I worry about malware on Linux? [closed]

I don't run an antivirus on Linux ( most people I don't AFAIK ) and I'm not at all concerned about any form of malware or spyware or any other_bad_ware. Should I by concerned? Of course I don't ...
19
votes
8answers
9k views

Is there a way to display a countdown or stopwatch timer in a terminal?

How can I display a real-time countdown timer on the Linux terminal? Is there an existing app or, even better, a one liner to do this?
19
votes
10answers
50k views

Differences between Ubuntu Linux and CentOS?

I'd like to know what are the difference between Ubuntu and CentOS. I'm new to the Linux world. Please help me understand which one is good for me to start out.
19
votes
6answers
3k 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 ...
19
votes
8answers
76k 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 ...
19
votes
3answers
18k views

How to join/merge many mp3 files?

Searching Google on how to join/merge many mp3 files, it suggests that I should just cat them together. That might "work", but clearly it is not the correct way to do it, as each header and set of ...
19
votes
2answers
5k views

Maximize window in tmux

tmux shows screen like this: [root@wpc-fc2 init]# |············ |············ ...