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

6
votes
2answers
2k views

How to “flush tor circuit”

On Windows I have used XBBrowser, which provides a custom version of Firefox suited to using Tor. XBBrowser provides a button, flush tor circuit, which will setup an entirely new connection and exit ...
5
votes
4answers
4k views

Why do we need to set swap space as twice big as our physical memory?

When we want to setup a linux system, there is a common a suggestion to set the swap space twice as big as your physical memory. I want to know why do we need this, and how it is this suggestion come ...
5
votes
2answers
4k views

How to switch users without entering password

I'm a newbie running Ubuntu 9.10. I have two users (wife and me), and each user's screensaver is set to lock so that on wakeup, we get to choose which user's desktop to go to. However, Ubuntu requires ...
4
votes
4answers
2k views

How do computers boot?

How does a computer boot and how does this differ for Windows, Linux and other OSes?
4
votes
2answers
3k views

rsync as a background process?

I've been using rsync to sync a bunch of files between my two servers. I set a cron job that would run rsync every minute. However, I'd prefer if I could have it run always, so that files are synced ...
3
votes
1answer
917 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
3k views

Can't boot OS from USB drive, showing black screen with blinking cursor

I have a problem with booting from a USB flash drive. I have Acer TimelineX 3820TG. I have Windows 7 Home from Acer and I installed Mandriva OS from USB(from USB because this Acer doen't have a DVD ...
3
votes
5answers
14k views

Find document files and copy them to another directory

This is a bit of a basic question but I'm trying to copy all .doc files I find in a directory and copy them to another directory. I know each command: find -name '*.doc' . and: cp filename ...
3
votes
1answer
1k views

Xmodmap: Six characters to one key?

From OpenSUSE wiki: (As long as Mode_switch/ISO_Level3_Shift is assigned to the keycode of Alt Gr - if you assign Mode_switch and ISO_Level3_Shift to different keys, you can assign up to six ...
3
votes
1answer
4k views

How to downgrade JRE's version in Ubuntu?

Currently I am having JRE 1.6.0_20. How do I downgrade it to JRE 1.6.0_17? How can I downgrade? I'm using Ubuntu 10.04 LTS.
3
votes
2answers
385 views

Can windows command line support Linux “cd -”?

In Linux we can use "cd -" to enter the previous directory, like: /home/user: cd /a /a: cd - /home/user: The - means the latest previous directory.
2
votes
1answer
355 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
13k 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.
0
votes
1answer
2k views

accidental fsck on mounted

I accidently run "fsck" on a mounted partition which was my only parttion. Now I can't boot. It was Fedora 13, filesystem should be ext3. I have booted from usb with ubuntu 11.10.I found that ...
10
votes
2answers
4k 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
790 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
7
votes
7answers
1k 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. ...
6
votes
1answer
847 views

What exactly determines if a backgrounded job is killed when the shell is exited, or killed?

This question has come up quite a lot (really a lot), but I'm finding the answers to be generally incomplete. The general question is "Why does/doesn't my job get killed when I exit/kill ssh?", and ...
6
votes
5answers
13k views

How to add a new kernel to grub2

How can we add a kernel to grub2? i knew the stuff we could do with the former versions, but it seems to have changed. What files should we edit?
4
votes
1answer
5k views

How to mount an NTFS filesystem, allowing all users full access?

How could I mount an NTFS filesystem in a way that would allow all users full access to it? If I use sudo mount -t ntfs /dev/sda1 /media/drive, then only the root user can use it. It won't let me ...
4
votes
2answers
456 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
9k 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
418 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
6k 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
567 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
2k 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
14k 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
8k 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
5k 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
476 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
4answers
13k views

Find all files older than one minute

How can I use find to select files that have been written and not modified in the last minute? I know I can do it the other way around, find files modified in the last 60 seconds with -mtime -60s, ...
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
3k 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
267 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
173 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
750 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
488 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 ...
172
votes
6answers
113k 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 ?
55
votes
9answers
158k 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?
84
votes
10answers
39k views

Get colors in 'less'' command

when I read a file in Linux with the command 'less' or 'more', how can I get the content in colors?