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

8
votes
4answers
9k views

Setting Linux environment variables

I am running Red Hat Linux Enterprise 5; I am always using the export command to set environment variables. Are there any other ways to set environment variables and what are the ...
7
votes
3answers
19k views

Linux kernel hangs at 'Switching to clocksource tsc" on Pentium 4

Hardware: Dell Dimension 4500S : i845G, Pentium 4, stock + 2GB RAM and latest (circa 2002) BIOS update. I've been building a Linux system from source, so far it's LFS 7.0 by the book. The first ...
7
votes
4answers
5k views

How to recover deleted file if it is still opened by some process?

$ cat important_file > /dev/null & [1] 9711 $ rm important_file $ killall -STOP cat [1]+ Stopped cat important_file > /tmp/p $ ls -l /proc/`pidof cat`/fd/ total 0 ...
7
votes
6answers
3k views

ssh-agent and screen

A while back on StackOverflow, I asked this question about ssh-agent and crontab. I have a similar question now about ssh-agent and screen on linux systems. So, on my Mac, ssh-agent launches at ...
7
votes
3answers
9k views

How can I encrypt a string in the shell?

Can I encrypt a message (string) using a public key at the command prompt? Also, how can I decrypt the result afterwards?
6
votes
1answer
10k views

Why would an EFI “BIOS” update break the EFI boot manager?

After successfully updating my P8H67-m pro with the latest "bios" version 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 ...
6
votes
6answers
9k views

How do I convert a Linux disk image into a sparse file?

I have a bunch of disk images, made with ddrescue, on an EXT partition, and I want to reduce their size without losing data, while still being mountable. How can I fill the empty space in the image's ...
6
votes
6answers
53k views

How to access a network folder in Ubuntu using the terminal

I am new to Ubuntu(and Linux for that matter) and I am trying to access files using the terminal. The network folder is on my Desktop, but when I go to the Desktop folder via the terminal, the ...
5
votes
2answers
3k views

How do I align the bottom edges of two monitors with xrandr?

I have two outputs that I'd like to use on my laptop: LVDS1 - 1366x768 HDMI1 - 1920x1080 I set my monitors up like so: xrandr --output LVDS1 --auto --output HDMI1 --auto --right-of LVDS1 This is ...
5
votes
1answer
9k views

SSD AES-256 hardware encryption - how to configure?

Recently, I bought Plextor M5 Pro with hardware full-disk AES-256 encryption. Installed it in my laptop, where I have no HDD BIOS password set. From what I read around it seems that the encryption is ...
5
votes
2answers
6k views

Configure a trackball under Linux without editing Xorg.conf

Summary: In this post, I explain how I configure my trackball through xorg.conf file and ask what I should do instead, knowing that xorg.conf is deprecated. Long Introduction: I've been using a ...
5
votes
2answers
7k views

dnsmasq without altering /etc/hosts file manually

I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is ...
5
votes
5answers
7k views

How to get Firefox to use MS TrueType fonts for Helvetica, Times, etc?

I'm using (Windows) TrueType fonts on my Ubuntu workstation (details), and am mostly happy with how fonts look, both in desktop apps and on the web (using Firefox). However, on some web pages, like ...
5
votes
5answers
7k views

How can I get the comment of the current authorized_keys ssh key?

Edit: What I really need to know WHICH ssh key from authorized_keys has been used to identify the currently logged on user. According to "man sshd": Protocol 2 public key consist of options, ...
5
votes
9answers
2k views

Running Linux inside Windows XP, ie no dual booting

What are the best options that allow running a Linux distribution, such as Ubuntu inside Windows XP, i.e. within a window? By "best" I mean quick startup time, low memory requirement, good graphical ...
4
votes
1answer
5k views

Problems with mounting HFS+ drives

I have a problem mounting some hfsplus drives. I just need them mounted readonly. (disabling journal is not an option) I did a lot of research and found out that due to changes from kernel version ...
4
votes
3answers
4k views

deleting everything: # rm -rf /

Just wondering, what happens when you delete every single file on a running Linux system? # rm -rf /
4
votes
5answers
20k views

How to install Emacs (Text editor) on ubuntu Linux

I have tried to install emacs from source that I downloaded from the internet. For that first I have chosen a path like: /home/anand/emac/emac-23.1 (where emac-23.1 is the extracted file) Then I ...
3
votes
2answers
11k views

Cannot mount NTFS partitions because of Windows 10?

I have a multi-boot computer, one of the partitions is taken by Windows 10 technical preview and another one is also ntfs. Booting in an Ubuntu-eOS system I get this errors when trying to mount these ...
3
votes
3answers
319 views

Free personal finance software [closed]

I'm looking for a Linux replacement for Quicken - but I really don't need all the bells and whistles. Effectively what I'm looking must be able to: handle multiple accounts (savings, checking, ...
2
votes
6answers
6k views

Sort and rename images by date in EXIF info

I have a mess in my photos folder; I want to sort them according to date in EXIF information and rename according to the date (like 001.jpg, 002.jpg and so on). How can I do this in Linux? I have ...
1
vote
2answers
5k views

What does “mounting a root file system” exactly means?

In the boot process of Linux we have the initrd that is a root file system and is mounted before the real root file system become ready to mount. What is the procedure of mounting? What should happen ...
1
vote
3answers
5k views

webcam problem with skype on linux

I am runing ubuntu 9.10 and the latest version of skype but I have problem with webcam. When I trie the webcam with cheese it works fine but when I try to use the web on skype , skype crashes. can any ...
29
votes
3answers
32k views

Get home directory by username

I want to obtain home dir of any user with echo echo ~puchuu >> /home/puchuu But I cant use variable echo ~$USER >> ~puchuu echo `echo ~$USER` >> ~puchuu
27
votes
4answers
20k 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?
20
votes
4answers
4k views

Why does Linux use a swap partition when the kernel supports paging/virtual memory anyway?

As far as I understand paging and swapping, they're completely different concepts. While swapping means, that a process is either completely in physical memory or on the hard drive, with paging parts ...
16
votes
7answers
20k views

How to kill a process started with a different user without being root or sudoer?

in a Linux environment, I need to kill a process which has been started by user2 if I am user1 without being sudoers or using root. Do you know if there is a way of setting that when launching the ...
15
votes
1answer
39k views

chown - Operation not permitted

I'm logged in as minime. I don't understand why it doesn't allow me to chown file that I own without su privileges. Obviously I can use sudo, but I'd like to understand why? because of www-data ...
15
votes
4answers
6k views

What is the unix command to find out what executable file corresponds to a given command?

For example, if passed ls as input it should tell me that /bin/ls will run if run ls on the command-line.
15
votes
3answers
55k views

How do I know which /dev/ttyS* is my serial port?

I have a laptop which has only one serial port. I went into: /dev directory, and I found: ttyS0 ttyS1 ttyS2 ttyS3 How do I know which of those "ttyS" refers to my serial port?
14
votes
2answers
12k views

Why do we use cp to copy files and not dd? (in unix-derivatives)

For normal file copying in *nix, I've only ever seen people use cp (eg. cp /mnt/mydevice/myfile ~/myfile), but I eventually ran into dd, which appears to do the exact same thing (dd ...
14
votes
2answers
6k views

What must be changed for cloned Linux systems?

When cloning Windows systems, it's fairly well-known that one should run sysprep before creating an image. This way, when the machine starts up, it will reconfigure itself for its new environment: ...
13
votes
6answers
922 views

I named a folder the character for space, and now that I've switched over to Windows I need to rename it

I named a folder " ", the symbol for a space. In Linux you can create folders with just a space. Now that I've switched over to Windows, I can't move the folder that has the folder named " " in it. ...
13
votes
1answer
8k views

Why can't I chown a VirtualBox shared folder?

I'm trying to recursively chown a VirtualBox shared folder, but I can't get it to work: $ ls -lah total 16K drwxr-xr-x 4 root root 4.0K Aug 1 2012 . drwxr-xr-x 23 root root 4.0K Jul 21 2012 ...
13
votes
7answers
4k views

How to find the uptime since last wake from standby

I want to know the uptime since the last wake from standby. The command uptime only shows the difference between current time minus the last startup time.
13
votes
6answers
21k views

How to watch Youtube fullscreen on one monitor of a dual-monitor display?

How to watch Youtube fullscreen on one monitor of a dual-monitor display, in Linux? If I do it in Google Chrome, as soon as I do anything at the other monitor, Chrome jumps back to normal window. ...
13
votes
4answers
16k views

How can I ping via an alternate gateway?

Our network has two modems, each one hidden behind a router. The primary router is on 10.1.1.1, the backup router is on 10.1.1.2, and are both configured to the 10.1.1.0/24 subnet. Both routers have ...
12
votes
5answers
13k views

Chrome 33 shows ugly, blocky, pixelated fonts in Linux

After updating to the latest version of Chrome (33) on my Gentoo Linux box, certain sites such as GitHub have started rendering with ugly, pixelated, non-antialiased fonts. Small text is now basically ...
12
votes
4answers
30k views

Page numbers in a PDF are off, how can I change them?

I have a digital edition of textbook I bought. The pages are numbered from 1 - 570. As a result, when I search page 68, it shows page 51 as the first pages originally in the textbook aren't numbered ...
12
votes
1answer
6k views

How to set Default Browser on Ubuntu from command line?

I'm using Ubuntu 10.04 with Fluxbox. Since I installed Chromium-browser, it has been set as the default system browser (don't know why, don't know when, maybe I clicked accept somewhere without ...
12
votes
3answers
27k views

How do I download a file using the command line?

I want to download a file from the Linux command line. Basically I'm using ssh and I'm trying to download a file to my file system on my laptop. How can I do that from the command line?
12
votes
7answers
14k views

Why is my subnet mask 255.255.255.255?

I have a modem which used for internet broadband and I got an IP address in the 'A' class 10.x.x.x and have netmask 255.255.255.255. What does 255.255.255.255 mean exactly? When I try to sniff with ...
12
votes
4answers
10k views

Terminal Vs. Shell [duplicate]

Possible Duplicate: What are the differences between shell , console & terminal? This probably sounds like a stupid question but I'm having a lot of trouble clearly differentiating ...
12
votes
4answers
15k views

Passing PATH through sudo

In short: how to make sudo not to flush PATH everytime? I have some websites deployed on my server (Debian testing) written with Ruby on Rails. I use Mongrel+Nginx to host them, but there is one ...
11
votes
1answer
5k views

Why does my remote process still run after killing an ssh session?

I'm tailing a remote logfile by running this command in a local shell: ssh remotemachine tail -100f /path/to/error_file When I ctrl-c out of this command, it seems that the ctrl-c kills the local ...
10
votes
2answers
714 views

How are public keys “sent” to servers, and how are private keys “used” for SSH?

There are two Linux machines, A and B. Scripts running on A need to be able to SSH into B. So A generates a public key (probably an ssh-keygen-generated id_rsa.pub), and then uses its respective ...
10
votes
2answers
10k views

Linux on UEFI - how to reboot to the UEFI setup screen like Windows 8 can?

makeuseof.com explains that Windows 8 certified hardware has a new way to enter the UEFI setup screen (equivalent to BIOS). From How To Access The BIOS On A Windows 8 Computer: No longer do we ...
10
votes
2answers
24k views

How do you specify the location of libraries to a binary? (linux)

For this question I'll be using a specific example, but really this generalizes to pretty much any binary on linux that can't seem to find its' dependent libraries. So, I have a program that won't run ...
10
votes
4answers
30k views

Connecting to a SonicWall VPN from a Linux machine

Is there a SonicWall client for Linux? When I searched around I could only find answers several years old.
9
votes
1answer
4k views

Gparted cannot resize extended or LVM partition

I created a VM using VirtualBox and realized it was small. So, i managed (after some time) to create a new, bigger HD. Live GParted CD image (v.022): Now I need to integrate the unallocated ...