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

19
votes
7answers
44k views

How can I mount a partition from dd-created image of a block device (e.g. HDD) under Linux?

I have an image of the entire disk created using dd. The disk structure follows: kent@cow:~$ sudo fdisk -l Disk /dev/sda: 750.1 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders ...
23
votes
5answers
17k views

How to prevent sudo users from running specific commands?

I have a very sensitive network setup and I really dont want to mess up with it. My network consists a bunch of users who are with sudo privilege. I want to stop them from running service ...
13
votes
5answers
14k views

How do I log file system read/writes by filename in Linux?

I'm looking for a simple method that will log file system operations. It should display the name of the file being accessed or modified. I'm familiar with powertop, and it appears this works to an ...
9
votes
3answers
28k views

How can one create a bootable Linux USB key that works on Mac (Intel 64 bit CPU) hardware?

I'm trying to create a bootable USB key with Linux (debian) and that can be booted on Macintel hardware. I have read that MAC's EFI can only boot GPT GUID formatted disks. I'm desperately trying to ...
13
votes
2answers
16k views

Using Ghostscript to convert multi-page PDF into single JPG?

I know Ghostscript can convert PDFs to JPGs, and in the case of a multi-page PDF, can rip each page to an individual JPG. But is it possible to have it rip them to one JPG, so that the pages are ...
13
votes
5answers
3k views

Little girl friendly versions of Linux (or themes for Linux) [closed]

I'm going to install Linux on a PC for a daughter (age 7) of a friend of mine. I recently came across Hannah Montana Linux. The parents don't want a commercially branded thing going on, so no Hannah ...
12
votes
2answers
14k views

How to Combine find and grep for a complex search? ( GNU/linux, find, grep )

I'm trying to do a text search in some files that share a similar directory structure, but are not in the same directory tree, in GNU/Linux. I have a web server with many sites that share the same ...
7
votes
2answers
23k views

What are the methods available to get the CPU usage in Linux Command line? [closed]

We know that top is a command to get the CPU usage in Linux and other ways include cat /proc/stat which is used by top. What are other methods to get the CPU usage in the Linux command line? Use ...
23
votes
6answers
17k 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 ?
18
votes
7answers
10k views

Replace Symbolic Links with Files

Is there an easy way to replace all symbolic links with the file they link to?
13
votes
4answers
9k views

How I can make sudo session an hour and not few minutes in Ubuntu 10.04?

How I can make sudo Ubuntu 10.04 session an hour and not few minutes? Now I have to write my password for sudo commands every few minutes.
11
votes
7answers
4k views

Time Machine on Ubuntu?

Is there a Time Machine like backup system for Ubuntu? If not, what is the closest thing?
10
votes
2answers
13k views

how to access samba on a guest Linux behind the VirtualBox NAT?

On my laptop, I'm running Ubuntu 9.10 under WinXP using VirtualBox 3.1.2. I want a setup where: The guest can freely access the internet. The host can access the guest files via Samba. The setup ...
12
votes
1answer
2k views

Why Windows needs reboot a lot more than Linux?

I use both Ubuntu and Windows XP. One thing that catches my attention for a long time is the high need for reboots in Windows. Most of the time when I install a program, Windows requests to reboot ...
10
votes
3answers
10k views

How to delete file with this name on linux: -]???????q

Somehow a file named -]???????q got created on my terminal. I tried rm -f "-]???????q" (in double quotes), but it did not get deleted. (Error:: rm: invalid option -- ]). How do I delete it?
9
votes
2answers
3k views

What do I have to take care of when hibernating both Ubuntu and Windows (dual-boot environment)

I've got both Windows 7 and Ubuntu (finally) installed on my laptop. For the sake of comfort, I usually hibernate Windows instead of shutting it down. And I think when using Ubuntu regularly, there ...
8
votes
1answer
8k views

Can a Linux machine act as both a wireless client and access point simultaneously using a single physical WLAN interface?

If I have only 1 physical WLAN interface, is there some hackery that can be done so that it can be a client of an existing access point and at the same time also act as an access point for other ...
2
votes
3answers
3k views

How to monitor BTRFS filesystem raid for errors?

I saw some documentation on a daemon that can execute a program/script for various BTRFS events, but I cannot find it anymore. How can I have a script/program be executed on a drive failure for a ...
14
votes
5answers
69k views

How to remove the Ubuntu Gnome desktop after making the switch to KDE?

This is the opposite of this question. Basically I've been using Ubuntu for a while but decided to give KDE a shot so I went through the process of getting the latest KDE installed. I'm very ...
12
votes
2answers
1k views

Where is a typical Linux program installed

I mean not just the binary, but its libraries, config files and data (strictly speaking all files). Also when I download a package where is it best to extract it. If I move these files will the app be ...
9
votes
5answers
3k views

Search for a text pattern in linux

I'm a linux newbie. I need to search for a string "teststring" in all *.java files coming under /home/user1/ (including subfolders). How can I do it in linux via shell command.
7
votes
3answers
2k views

How can I receive phone calls on a Linux server and script stuff depending on the numbers pressed?

I live in France and the ISP I've subscribed to provides a regular phone line along with my Internet connection. Here's a simple schema of my setup: Since I don't use this phone line I would like ...
1
vote
2answers
11k views

Block all ports except SSH/HTTP in ipchains and iptables

How can I block all ports except ssh (port 22) httpd (port 80) using iptables and iphains?
15
votes
7answers
17k views

How do I extract an ISO on Linux without root access

I have a large ISO file on a server, and I need to access the file in it, without having root access. Thus, I can't simply mount it. What should I do to be able to extract an ISO on LInux without root ...
12
votes
4answers
9k views

Linux Group Permissions not being enforced correctly.

I am running Ubuntu 10.04 server and am having some very counter-intuitive experiences with users/groups. For example: sudo touch test_file # create empty file sudo groupadd test ...
12
votes
3answers
9k views

Adjust screen brightness automatically at night

Can anyone tell me how to automatically dim my monitors when it gets dark at night?
9
votes
4answers
1k views

Unix tools: what if a file is named minus something?

I'm always wondering: most GNU/Unix tools take options in the form "minus something", sometimes followed by an argument. What if you got a file named minus something? $ ls -f $ rm -f $ ls -f $ mv -f ...
8
votes
4answers
6k 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
1answer
1k views

Deleting another user's directories from my own

I am a non-root user, and have made a directory into which other users in my group can write. The directory is setgid, so files and directories within it have the same group. I can delete files ...
4
votes
4answers
1k views

Linux distributions comparison

Does any good comparison exist (like a table of present features) between the many Linux distributions? What are the features and advantages on each distribution? (Ubuntu, Fedora, CentOS, etc.) ...
3
votes
2answers
1k views

Minimal emacs24 installation on ubuntu

I need a minimal emacs 24 installation for distribution in a virtual box. When I try to install emacs-snapshot from synaptics I get tons of stuff installed like ghostscript and imagemagic and various ...
2
votes
3answers
368 views

No GRUB after re-installing Windows

I have Windows and I installed Fedora 12 on a separate partition. However, I had a problem with my windows XP SP 3 and had to install Windows on my C drive. When I re-boot I on longer get the GRUB ...
2
votes
1answer
2k views

Java install on Ubuntu?

i'm new to linux and i was trying to install the java JDK with EE on ubuntu. I downloaded the .bin file (java_ ee_ sdk-5_08-jdk-6u17-linux.bin) from the sun site & followed the install ...
1
vote
1answer
350 views

How can I start a process over SSH such that it will continue to run after I disconnect?

XBMC occasionally crashes on my media server. It's a pain to bring down the media server because I have to manually restart a number of services each time. I'd like to be ablle to start XBMC from an ...
0
votes
2answers
456 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
4answers
6k views

Create a Windows XP user from a linux partition

Long story short, someone repaired my brother's computer and set a password on his account, now we can't get in and can't contact the person who set the password. Is it possible to create a Windows ...
0
votes
1answer
1k views

Unable to access localhost & Internet using one adapter in CentOs

I have the below dev. environment. Hardware:- Windows 7, 32bit, HP Laptop. Software:- CentOs 6.5 running on VirtualBox 4.3.10. In a nutshell The problem is that I can't access the internet and ...
0
votes
3answers
196 views

Dual boot Linux with Windows 7

I am trying to recover an installation of Linux on my machine, preferably without having to reinstall Linux (and possibly Windows) altogether. I have installed Pear OS first, and then installed ...
0
votes
4answers
316 views

Share internet in Linux

I have an 3.5G USB Modem that I want to share its internet connection in Linux. I tried already, but only got having no internet on my own PC, still without sharing it. It's really hard to find some ...
106
votes
16answers
170k views

How to wipe free disk space in Linux?

When a file is deleted, its contents may still be left in the filesystem, unless explicitly overwritten with something else. The wipe command can securely erase files, but does not seem to allow ...
233
votes
8answers
244k views

What is the “You have new mail” message in Linux/UNIX?

Sometimes, when I log into a box and 'su' to root, I get a cute little message saying I have mail (thank GOD it's not AOL). Where is this mail? What does it contain? Who/What sent it? How important ...
128
votes
13answers
82k views

How to reliably keep an SSH tunnel open?

I use an SSH tunnel from work to go around various idotic firewalls (it's ok with my boss :)). The problem is, after a while the ssh connection usually hangs, and the tunnel is broken. If I could at ...
177
votes
3answers
184k 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: ...
108
votes
8answers
66k 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 sessions?...
67
votes
4answers
108k views

How to make new file permission inherit from the parent directory?

I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to ...
129
votes
2answers
31k 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 do ...
39
votes
5answers
24k 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 ...
35
votes
5answers
143k views

How to reinstall GRUB2 EFI?

After successfully updating my bios, something went wrong and I ended up with a blinking cursor on the top left corner of a black screen. No errors, no nothing. The bios now only listed a SATA: <...
89
votes
5answers
44k views

Aptitude vs. apt-get: Which is the recommended (aka the “right”) tool to use?

Some time ago I read that aptitude is the preferred tool for installation on Debian-based systems. But when you search around on how to administer a Debian-based system, then aptitude is rarely ...
53
votes
5answers
41k 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. ...