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

2
votes
1answer
289 views

How do you remove nested empty directories using a Bash script on Linux?

I want to be able to run a script that will remove all my empty directories. The problem is some of them are nested, i.e. directories that only have empty directories in them, so the script needs to ...
2
votes
1answer
3k views

Convert a colored PDF into a white/black

On Debian Sid, I have a PDF with a blue background and yellow font. I've searched a lot on Super User but i haven't found anything useful for me. I have tried to convert the PDF into a grayscale one ...
2
votes
2answers
12k views

Change the default codepage from latin1 to utf8 on a linux machine

How can I change the default codepage/charset on a linux system from latin1 to utf8? I need to do this on two systems, one is running Ubuntu and the other Debian.
10
votes
2answers
3k views

sound volume increase beyond 100% whenever possible on linux

Some audio output from files or streams is too low. It is obvious that hardware is able to play the same sounds but louder but because of the data it just plays it at some low level even at 100% ...
9
votes
0answers
398 views

How does rebooting a computer work? [duplicate]

Possible Duplicate: How does a computer restart itself? How does a computer's reboot command actually work? How is the computer told that it shouldn't stay down after powering off, and ...
9
votes
7answers
2k views

7-zip for linux

7-zip for linux, does such a thing exist? I mean actually 7-zip or a port, not another compression tool or command
7
votes
1answer
712 views

Is backwards redirection the same as a pipe?

In Linux if you type sort < txtfile is that the same thing as cat txtfile | sort
6
votes
7answers
962 views

Why is it bad to run as root?

I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. ...
4
votes
2answers
435 views

Recovering Ubuntu after filesystem was overwritten using dd

I had an Ubuntu installation on my laptop, on an encrypted LVM (this was /dev/sda1). I was planning to write an Arch Linux image to my USB drive (/dev/sdc1), following this guide - ...
4
votes
2answers
3k views

How can I set up Linux to use a different DNS server for a certain domain?

I can add DNS servers to resolv.conf and that works fine. But is it possible for me to call a different DNS server based on the domain trying to be resolved? For example: use 10.0.0.1 for ...
3
votes
1answer
516 views

Linux command-line: Fastest way to disable internet (keeping LAN)?

Split question: this other one here is for Windows. Linux: Fastest way to disable internet (keeping LAN) from command line? I think the easiest way to deactivate internet (not LAN) in Linux is ...
3
votes
1answer
6k views

How to change user in winSCP?

I'm using winSCP to access Unix computers. How can I change user after I have logged into a Unix server using winSCP? E.g. I have personal account in unix computer A. I can log into this comp using ...
3
votes
2answers
373 views

How to reorder folders? (as displayed in `ls -U`)

I've got a number of unordered folders on a memory stick, which my car stereo shows in order of their real position on the stick (i.e. same as ls -U) What's the easiest way of physically reordering ...
3
votes
2answers
2k views

Music organization into folders for Linux(Ubuntu/Debian)? [closed]

I have a few folders with randomly assorted music files. I'm looking for a tool or utility that can read the ID3 tags, and then build and populate a folder structure in the format: some ...
3
votes
2answers
5k views

How to use scp in a bash script without specifying password?

I am a bash newbie, and am writing a bash script that will allow transfer of files between two computers. BTW, is there a more secure alternative to scp? Currently, I am doing this manually, by using ...
3
votes
2answers
5k views

How to access Guest (Linux) Filesystem from Host (Windows) in VirtualBox

I am trying to synchronize my music between my desktop (Ubuntu 9.10) and my laptop (VirtualBox: Windows 7 host & Ubuntu 9.10 guest) I use Unison to perform the actual sync, which itself is not the ...
3
votes
3answers
543 views

Free Data recovery tool for linux?

I deleted files on my linux drive that I shouldn't have. What is a good tool to use to recover these files that will: Recover the various file types (txt, php etc) Recover it as the original files ...
3
votes
2answers
6k views

Split MPEG video from command line?

I have a homemade DVD that I'm effectively trying to insert chapters into and rearrange - the original author burned it as one long chapter, and I'd like to rip it into smaller pieces and re-encode it ...
2
votes
4answers
1k views

Redhat Linux password fail on ssh

I am trying to ssh into my linux machine from my mac. If I am physically at the machine I can log in with my password just fine, but if I am sshing it refuses. I am getting: Permission denies ...
2
votes
3answers
13k views

Automating the “sudo su - user” command

I want to automate sudo su - user from a script. It should then ask for a password.
2
votes
3answers
7k views

How do I remove a Linux partition and expand the Windows partition to consume the Linux partition space?

I partitioned my hard drive to dual boot Linux Mint 9 and Windows 7. Now I'd like to remove the Linux Mint partition (and increase the size of the Windows 7 partition). I've Googled for some ...
2
votes
2answers
3k views

What is a file system which has r/w on all major OSes [duplicate]

Possible Duplicate: Cross-platform filesystem What is a file system which has r/w on all OSes like windows, linux and Mac. Windows comes with FAT and NTFS support and EXT3 support can be ...
1
vote
2answers
4k views

How make bootable usb with Windows XP liveCD from linux (debian)

how to create bootable USB with Windows XP liveCD. For Linux liveCD/DVD I can write cat <debian-iso> > /dev/<flash-drive>, but in windows case this doesn't works
1
vote
0answers
471 views

How can I preform OCR from the command line?

I need to perform OCR on the a backend of a website on a Linux machine with printed text. I read the other related questions here, so I tried tesseract, wich is considered as one of the most accurate ...
1
vote
2answers
2k views

How to recover a partition accidently deleted with fdisk (Linux)?

I am using FC6 in VMware, I accidently deleted my partition by using fdisk, it told me that after the restart, the partition will be deleted. Now I lost all my important data in that drive. What are ...
0
votes
3answers
1k views

ssh still asking for password when trying to log into another pc

I recently constructed a small Beowulf cluster out of some old computers all running Linux Ubuntu 12.04 LTS and have been following the instructions on this page: ...
0
votes
2answers
220 views

How To Get Windows To Stop Assuming Precedence Over GRUB?

I have a SATA hard drive with an MS DOS MBR partition table, an ext4 Linux-based OS, an NTFS Windows 7, and an extended partition. I was happily using my ext4 partition for quite some time, but grew ...
0
votes
2answers
160 views

Linux Won't Boot From Option in Windows Boot Manager

I have a pre-existing option to boot from (Windows 7), and a also made a Linux option which was made from Easy BCD. I'm able to load Linux when I click on Windows 7 (When my external HDD with it is ...
0
votes
1answer
647 views

Command not executing inside shell script?

#!/bin/bash value=$(</var/www/sym_monitor/man.txt) if [ "$value" == "true" ]; then ps -ef|grep sym |grep -v grep |awk '{ print $2 }'|sudo xargs kill -9; (cd ...
0
votes
2answers
1k views

Apache2 won't load css files on Debian 6 (Squeeze)

After using nginx for a few months, which worked pretty well, I decided to switch back to Apache. Now, I have just installed apache2, but it seems like it won't load my CSS files. I've been struggling ...
0
votes
1answer
463 views

Why is my IP displayed in nslookup and netstat different?

i am connected to the internet through a LAN. When I see my IP in Windows 7 when using netstat -a, my IP is 172.19..., but when I used Linux (Ubuntu), for just checking a host name by nslookup, there ...
0
votes
1answer
2k views

Dual Boot Windows 7 + Linux on 2 separate SDD + Data HDD

I'm about to build myself a new machine (to replace my old Celeron, yes you can laugh :P) and I want to be able to dual boot on Windows 7 (mostly for games) and Linux (development/programing). I'm a ...
1269
votes
7answers
134k views

How do I make a machine “blank screen” for a period of time (as a penalty) if certain noise levels are reached?

My kids (4 and 5) yell a lot when playing games on the computer. I found an effective cure for this. When I hear loud noises, I ssh into the game computer and do: chvt 3; sleep 15; chvt 7 This ...
147
votes
6answers
95k views

How to chmod 755 all directories but no file (recursively)?

How to chmod 755 all directories but no file (recursively) ? Inversely, how to chmod only files (recursively) but no directory ?
51
votes
9answers
141k views

What is the Linux command to find out hardware info?

I need to find out hardware information for the below items under Linux: CPU (and cores) CPU speed Memory Hard disks OS version Any advice?
40
votes
6answers
18k views

Better Ubuntu Fonts

I have been using Ubuntu for a while. I like it. I like it a lot. But once in a while, when I switch to Windows, I feel better because I really like the font. It feels really much pleasant to watch ...
63
votes
14answers
150k views

How do I figure out which /dev is a USB flash drive?

I want to mount a USB drive, two of them and I need two different mount points. Unfortunately, the Linux kernel underwent a name change and I can't figure out which /dev location is the right one. Is ...
85
votes
2answers
59k views

Go back to previous directory in shell

Is there a way to go back to previous directory we were in using bash,tcsh without using pushd/popd ? I'd like to type something like "back" and got returned to the previous directory I was in. Edit: ...
37
votes
16answers
47k views

How to synchronize the home folder between multiple computers?

I have three computers at home, and would like to have the /home/ folder tree synchronized between the three. Any files/folders (except those hidden) that are modified/added/removed in one of the ...
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. ...
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 ...
76
votes
6answers
61k views

How do you gunzip a file and keep the .gz file?

The default behavior of gunzip is to delete the .gz file after it decompresses. How do I prevent it from deleting the file?? If this functionality is not included then is there an alternative ...
39
votes
4answers
39k views

How to specify level of compression when using tar -zcvf?

I gzip directories very often at work. What I normally do is tar -zcvf file.tar.gz /path/to/directory Is there a way to specify the compression level here? I want to use the best compression ...
75
votes
3answers
30k views

What's the equivalent of Linux's updatedb command for the Mac?

If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the ...
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 ...
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 ...
24
votes
9answers
53k views

How to convert Word (doc) to PDF in linux?

I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
36
votes
6answers
21k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using: # usermod -G <grouplist> <user> is it possible to force this group assignment to take effect without logging out all running ...
33
votes
4answers
27k 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 ...
56
votes
2answers
11k views

How to append to a file as sudo? [duplicate]

Possible Duplicate: sudo unable to write to /etc/profile I want to do: echo "something" >> /etc/config_file But, since only the root user has write permission to this file, I can't ...