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

3
votes
3answers
3k views

Check if two paths are pointing to the same file

I've got a script to recursively create symlinks in my home directory to my settings directory, to keep the files under version control. I would like it to skip files which are already symlinked via a ...
1
vote
2answers
4k views

Failed to su after making a chroot jail

On a 64 bit CentOS host I am using script make_chroot_jail.sh to put a user in a jail, not permitting it to see anything expect it's home at /home/jail/home/user1. I did it typing this: sudo ...
1
vote
4answers
1k views

What is best unix/linux filesystem for external hdd? [closed]

What is best unix filesystem for external hdd. I don't want to share data with Windows.
1
vote
1answer
1k views

How to download images with wget

I'm doing this wget script called wget-images, which should download images from a website. It looks like this now: wget -e robots=off -r -l1 --no-parent -A.jpg The thing is, in the terminal when i ...
32
votes
6answers
102k 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 ...
1
vote
1answer
1k views

Tri-head linux system with Xmonad: is it possible to have HW acceleration

What means there exists to have three monitors, all controlled by Xmonad and have hardware 3D acceleration as well? I had the pleasure of using three monitors earlier this year, and while Xmonad and ...
1
vote
3answers
947 views

What is the best way to shutdown hard disk?

Right Now I'm using hdparm command in unix to shut down the hard disk but there are few issues with it. when it wakes back up it consumes lots power. Is there any other way to do it? Many times when ...
1
vote
1answer
548 views

Emacs refuses to save file: “File has changed on disk”. Really, emacs?

When I edit a file in Emacs on my Ubuntu Linux system and try to save, I sometimes see the message: File foo.txt has changed on disk. Really save? The weird thing is that I haven't changed it on ...
2
votes
0answers
257 views

How to do a real-time task with a high-load background task in Linux?

I've started recording of sound (minor CPU, memory and IO load) as schedtool -R -p 2 -e arecord -f cd > qqq5.wav And perform large compilation (high CPU load + high memory load + high IO load) ...
0
votes
1answer
1k views

Failing to load rootfs: Ubuntu 10 + grub2 + rootfs ext4 w/ RAID1

I am having problems booting a new Ubuntu 10 (server) install. My primary HD (/dev/sda) is laid out as follows: Device Boot Start End Blocks Id System /dev/sda1 * ...
0
votes
7answers
22k views

How to change the root directory for a Linux user?

For a user on a Linux host, I need to make everything inaccessible besides his home directory. I have heard that this is usually done by changing the root directory for the user (and setting it to ...
0
votes
0answers
254 views

How can I use my computer as a USB storage device? [duplicate]

Possible Duplicate: How to connect two Computers with USB? So my TV supports USB and not Ethernet. I don't want to swap USB flash drives everyday. I'd like to plug my always-on Linux ...
2
votes
2answers
958 views

Linux, email notification tray/popup for certain IMAP folder

looking for a Linux email client that can display tray/popup notification (best: via libnotify's popup or dbus event) when a certain IMAP folder (not the whole inbox) gets a message. HTTP/SOCKS proxy ...
0
votes
4answers
3k views

How to get a VNC server to be available before login?

I have a remote Ubuntu server without a physical screen attached, which I use via VNC. Occasionally I have to restart it and then go through the hassle of going to its physical location connecting to ...
0
votes
2answers
843 views

cron job not working

It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 ...
0
votes
1answer
638 views

Setting up SSH proxy for only some servers in Linux

I followed the steps described in http://returnbooleantrue.blogspot.com/2009/06/using-github-through-draconian-proxies.html, but then connecting to the internal server fails: Proxy could not open ...
7
votes
4answers
2k views

How can I recursively set read-only permissions?

I have a very large and deep directory. I would like to make all of it read only. The problem is I guess I have to distinguish between files (which will get a=r) and directories (which will get a=rx). ...
0
votes
3answers
6k views

Disable user and change user password using SSH

How do I disable and change the user password using SSH on a Linux
1
vote
2answers
490 views

tools for checking hard disk failure

Fedora 13 I am just wondering if there are any tools for checking the life of the hard disk. I had my hard disk for 4 years. And now I think it is having some problems. Is there any tools I can use ...
2
votes
1answer
152 views

How does OS manage USB ports?

If I have a USB printer, how does Linux or Windows manage the device when plugged into a different USB port? For example, I take a printer plugged into a front USB port on computer and move it to ...
2
votes
3answers
10k views

Resetting a BIOS password on a laptop

I bought a ChemBook laptop which I have installed Ubuntu Linux on. It has an AMI BIOS. There is a password on the BIOS so I can not change its configuration. The laptop does not have a 3.5inch ...
3
votes
1answer
1k views

Transferring large files using scp with CPU and memory considerations

I want to transfer an arbitrarily large file (say >20GB) between 2 servers. I have several considerations: Must use port 22 (ssh) because of firewall restrictions Cannot tax the CPU (production ...
0
votes
1answer
679 views

How do I switch the focus of the X-screen that I'm looking at?

For a variety of reasons, I have two x screens configured on my Ubuntu 10.10 desktop. But, I can't use Alt+Tab to switch between any all of the windows at the same time. For example, if 2 Windows are ...
2
votes
6answers
9k views

list/find all regular files in all subdirectories excluding binary files

In Linux. I know I can do find . -type f, but that includes binary file and I couldn't find a way to exclude them with find
4
votes
2answers
3k views

Using “find” to list only directories with no more childs

How can only directories be listed, that do not have another child directory? Imagine a structure like /A /A/AA /A/AB /A/AB/ABB /B /C /C/CC /C/CC/CCC /C/CC/CCC/CCCC I would like to use find to list ...
8
votes
8answers
24k views

Sudo - is there a command to check if I have sudo and/or how much time is left?

(Originally posted on Stack Overflow. They suggested I try here instead. Here's the original post: ...
1
vote
1answer
649 views

KDE global shortcuts stopped working. KDED trouble?

I'm running the latest KDE4 and have gotten used to my Yakuake dropdown console. The problem is that the global shortcuts in KDE stopped working, which basically makes my whole environment unusable ...
1
vote
1answer
134 views

Identify unwanted ports

My Ubuntu 8.04 server has been reported for sending spam mails. I can't figure out which program is sending the mail. Can anyone help me in identifying the unwanted ports in my Ubuntu server? Here ...
1
vote
5answers
1k views

Renicing complex multithreaded applications in Linux

Applications (especially big Java and C++ ones) often shows up as multiple lines in htop, each have separate PID and separate nice level. Also application can spawn a lot of child processes (like as ...
0
votes
2answers
912 views

Looking for a program which uses LZW compression [closed]

I need to learn how to do Lempel–Ziv–Welch compression using pen and paper for my algorithms and data structures class. Unfortunately we have only a couple of examples in our book of how it is done. ...
5
votes
3answers
3k views

How to get Bash shell history range

How can I get/filter history entries in a specific range? I have a large history file and frequently use history | grep somecommand Now, my memory is pretty bad and I also want to see what else I ...
0
votes
1answer
151 views

How do I read alternate gnome configuration files

I have a number of versions of gnome installed on a number of different hosts. All users have network mounted home directories. In some cases gnome works poorly when reading configuration from the ...
2
votes
2answers
511 views

emacs equivalent of Xcode's #pragma mark?

I'm coming to emacs from Xcode. An Xcode feature I really like is the ability to type the lines #pragma mark - #pragma mark Section Heading Name to mark the subsequent part of my code as belonging ...
7
votes
9answers
2k views

How can I recover source overwritten by a bad compile command?

I had written a source code of C++ and complied it with the same name using the following command line. For example: c++ source-code.cpp -o source-code.cpp Now my source code has been replaced by ...
1
vote
1answer
2k views

Why does hdparm -I /dev/sdx give an error?

I wanted to know if my disk contains any HPA(Host Protected Area), by issuing the command hdparm -I /dev/sdx, but I am getting error */dev/sdx: HDIO_DRIVE_CMD(identify) failed: Invalid exchange*
0
votes
1answer
705 views

Virtual Machines and Dual Monitors with a Windows 7 Host and Linux Guest

I'm looking for virtual machine software that supports dual monitors on a Linux guest with a Windows 7 host. VirtualBox supports dual monitors only for Windows guests. VMware Player was extremely ...
1
vote
2answers
4k views

Unix recursive directory listing with full pathname of file and filesize

I'm trying list all files (recursively) with their full path name (including name of the file) followed by their size in bytes. I do not need any '.', '..' entries. I dont think anything in the 'ls' ...
0
votes
1answer
1k views

Problems Receiving a Multicast stream - How to Debug?

Through my university I've got a multicast stream that I can watch (using VPN). I try to watch it using vlc, vlc udp://@233.121.29.1:1234 but nothing happens. When I try to double click to start it ...
1
vote
3answers
706 views

Can't access Ubuntu partition in XP even with tools

I installed Ubuntu 10.10 to dual-boot with XP Home on my Asus 1005HA netbook. The main hard drive is an OCZ Vertex 2 SSD. I've tried all the common tools for accessing the Ubuntu partition from inside ...
68
votes
13answers
12k views

How is Linux not prone to viruses, malware and those kinds of things?

How is Linux protected against viruses? This question was a Super User Question of the Week. Read the blog entry for more details or contribute to the blog yourself
3
votes
3answers
680 views

New laptop - no install media - Backup Windows - Install linux

So I've got a new laptop, but no installation media. The hard drive has a hidden restore partition, a Windows 7 partition, and a small partition for vendor tools. My goal is to make a backup of the ...
0
votes
1answer
334 views

Google chrome 6 won't work on linux

I'm on Slackware 13.1, used slackbuild's sbopkg to update from Chrome 5 to Chrome 6.0.472.62. When I try to run Chrome, it starts but immediately dies. Here's the error message that comes up: ...
1
vote
2answers
259 views

print all sub directories (include directories that starts with “.”)

I need to print the full path of directories and all sub directories under some source directory for example how to print all directories/sub directories under /etc or /var .. (include directory ...
3
votes
2answers
1k views

Linux alternative to Windows Home Server Backup

I love the backup capabilities of Windows Home Server, but that's about the only feature of it that I use. Does anyone know of any Linux-based services that will allow me to backup client PCs in a ...
0
votes
2answers
2k views

execute ssh command without password? [duplicate]

Possible Duplicate: How do I set up SSH so I don't have to type my password? i execute the following command :- ssh -l admin hostname command but each time i execute it, it ask me to ...
0
votes
3answers
126 views

Which directories are private to specific users by default on UNIX-based systems?

Which directories and files in UNIX-based file systems have default user permissions set? For example, a user's home directory can't be seen by other users on a system without his permission. What ...
3
votes
1answer
1k views

Where do screensavers come from in Ubuntu/Linux?

How can I add a screensaver to my system? I don't want to import an existing one, but to know the mechanics of how to CREATE one from scratch and install it as if it were one of the default ones.
1
vote
2answers
2k views

Determining if Linux partition is ext2 or ext3 without /etc/fstab info

How do I determine if a partition is ext2 or ext3 if I no longer have a copy of /etc/fstab ? Here is what I get out of dumpe2fs. I suspect that there is some info here that is relevant. I am guessing ...
3
votes
2answers
1k views

How can I move folders that contain a file with a specific extension to a destination folder?

Many years ago, I converted a portion of my files to an arbitrary format with a specific extension. i no longer desire to have them in this format and i would like begin the process of replacing them ...
4
votes
6answers
5k views

Search Terminal Output

Using a default terminal and bash, there is no functionality to search the standard output of commands. One can gain such functionality using other tools, like emacs shell or screen, but I am ...