These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

4
votes
3answers
4k views

Meanings of the columns in “last” command

As I was investigating a server that is rebooting in a regular fashion, I started looking through the "last" utility but the problem is that I am unable to find what the columns mean exactly. I have, ...
4
votes
2answers
2k views

Can I build a linux distro with libc instead of glibc

I recently had a conversation with a friend who is a highly skill software engineer, and he showed me some articles outlining the fact libc was much better than glibc. I wonder if its possible to ...
18
votes
2answers
16k views

In which log should I check for udev errors?

I've written a udev rule which is run each time my device is mounted/dismounted. However, in which Linux (Debian) error log should I check when debugging such rules?
6
votes
2answers
18k views

How to see complete list of processes in top

When I do 'top', I learn that there are many processes running out of which many are in sleep state. I need to see complete snapshot of all processes at that point. the 'top' is able to show listing ...
7
votes
3answers
13k views

How to set umask for a system-user?

Is it possible to set the umask for a system-user (created with useradd --system username)?
1
vote
2answers
154 views

Logfiles for non terminating processes

I am writing a program that is designed to never terminate, It will also produce large logs (files) of what it is doing. What I would like is for a linux process to periodically (every X minutes (...
16
votes
2answers
14k views

How to know reason of a process going to sleep state and wake it up?

When I do 'top' , I see my perl script process in 'S' state. Is there a way to know, what is making this perl process go in sleep state and ways to wake it up? Any way to debug to give more insights ...
0
votes
1answer
1k views

Need help with understanding output of ps -ef on linux

When I do ps -ef on my Linux box, I get: UID PID PPID C STIME TTY TIME CMD Please help me with meaning of C,TIME. is the TIME , the actual cpu time allocated to the process?
5
votes
1answer
6k views

How to resize ext3 image files

I have created an 200MB ext3 using the following commands. dd if=/dev/zero of=./system.img bs=1000000 count=200 mkfs.ext2 ./system.img tune2fs -j ./system.img How can I resize it to 50MB and 300MB? ...
13
votes
1answer
2k views

What are the benefits of the new teaming driver?

When compiling a 3.3 kernel, I noticed that a new driver called teaming was added to the networking system. According to the relevant commit teaming is a userspace-driven alternative to bonding. Has ...
3
votes
1answer
697 views

Linux Home Firewall

I was recently delving into thoughts of building a small home server to run random things off of (maybe a TF2 server). Thinking about this further I realized I would need to get a better firewall ...
3
votes
1answer
1k views

arping equivalent for IPv6

What is an equivalent for IPv6 of arping -q -c 3 -A -I [device] [ip]? I know, there is not an arp in IPv6 and Neighbor solicitation used instead, but which linux user space tool can send such ...
0
votes
1answer
948 views

Windows host shares doesn't get mount when I boot into Linux guest in vmware?

I've enable network shares in vmware and I want to share a Windows folder with my Linux guest OS but I don't know where to look in my guest OS? In Linux I've looked into network shares and samba ...
8
votes
3answers
12k views

How can I change 'change' date of file?

How can I change 'change' date? $ touch -t 9901010000 test;stat test File: `test' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fe01h/65025d Inode: 11279017 ...
3
votes
1answer
5k views

USB 3G Modem for embedded Linux?

I am fairly new to Linux world, I have to develop an application on embedded Linux which sends data over internet. I have to choose a USB 3G modem with a SIM card holder. I would appreciate if anyone ...
2
votes
1answer
2k views

mdadm raid0 with disks of different size?

Currently I'm using LVM just to merge a few disks of different size. I want to know if it is possible to use mdadm with stripes instead of LVM? Will it give me additional performance? Will it use ...
0
votes
1answer
867 views

Filesystem for Gentoo root?

I need a fast and space eficient filesystem for my Gentoo workstation. I have some expirience with ext4 and found it very slow on lots of small files inside the filesystem. I am considering another ...
13
votes
4answers
21k views

XFS vs Ext4 vs Others - which file system is stable, reliable, for long run such as 24/7 case [closed]

XFS and Ext4 file system which one is really stable and reliable for long run with heavy disk write and read? the system will be used in a place where 24/7 is in service, and every second there is ...
1
vote
4answers
2k views

Dynamically changing the proxy server for all outgoing traffic

I have three proxy servers in my college, all of them are connected to three different service providers. At different instant of time, different proxies give different speed (depending the number of ...
6
votes
1answer
666 views

caching a master passphrase on a linux server

I am trying to use keychain on debian latest stable with some difficulty. Searching online I could not find a solution, but thought perhaps a different approach or a different tool might be better in ...
1
vote
0answers
340 views

No sound with fresh Kubuntu install

I've just taken the plunge and installed Kubuntu as my main desktop env but I can't get the sound to work, and was wondering if anyone would be so kind as to help me work out what the problem is. I ...
4
votes
2answers
4k views

Salvage files from ext3 filesystem with physical errors

I have a disk from a crashed Linux laptop with files on it that the unhappy owner would like to have back if at all possible (no backup solutions please). I have not had anything to do with it before....
1
vote
4answers
986 views

grant permission in linux

I have a linux web server with 2 hard-drives. There are 2 users, one can access /home/user1 and the other user can access /home2/user2 I would like to grant user1 permissions to access /home2/users/ (...
0
votes
2answers
666 views

Removing a long string from php files - using grep and sed?

I have encountered some malware on my Linux server, and am trying to remove it from many php files. I've tried endlessly with grep | sed and grep | tr and couldn't even erase a simple text string, ...
0
votes
2answers
538 views

Video Conversion Tool in Debian 6?

Is there any video conversion software in debian 6 which supports all format?
2
votes
3answers
3k views

CentOS: Sharing WLAN for internet access

I have installed CentOS 6.2 on HP Proliant server. I want to share my USB wireless internet (Tata photon +). I am able to start internet on my server, but when I enable my LAN, I don't have internet ...
1
vote
1answer
489 views

How to limit all tcp traffic to the network interface the session was initiated on?

I have an embedded linux system with two network interfaces (lan0, wlan0) that are configured to the same subnet. A server on this system accepts tcp connections on both interfaces. How I can assure ...
5
votes
2answers
4k views

Accidentally deleted the partitions on my boot disk. The system is still running. How can I recover?

I just accidentally scrubbed all the partitions from the wrong disk. /dev/sda is the boot disk, and /dev/sdb is a new disk I am trying to set up as a RAID mirror. I accidentally fat-fingered it, ...
3
votes
3answers
5k views

How to insert tab character in “dialog”?

I'm using the linux "dialog" utility to create a simple UI. However, there is a text in infobox and I want to insert tab characters in order to properly align the text. But it seems, that dialog ...
1
vote
1answer
699 views

How to know who accessed a file or if a file has 'access' monitor in linux

I'm a noob and have some questions about viewing who accessed a file. I found there are ways to see if a file was accessed (not modified/changed) through audit subsystem and inotify. However, from ...
2
votes
3answers
917 views

Linux program running on Ubuntu machine but not on Unix webserver

I've downloaded the command-line program "Whitaker's Words" which was available for Linux as well as Windows etc. There is a main program named words. I tried to execute it on my Ubuntu (11.10) ...
17
votes
4answers
8k views

How can I write to dmesg from command line?

I'd like to write a statement to dmesg. [How] can I do this?
3
votes
2answers
533 views

Cross LFS - PPC - Error while compiling

I'm trying to build a CLFS for a PPC 8270 processor. All is fine until I use the make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- command. CC arch/powerpc/kernel/align.o arch/powerpc/kernel/align....
1
vote
1answer
884 views

What is the difference between $var and “$var”? [duplicate]

Possible Duplicate: $VAR vs ${VAR} and to quote or not to quote I assigned a variable var a value as follows: pradeep@pradeep-laptop:~$ var="Pradeep > is > a good > boy" Then ...
10
votes
2answers
784 views

What is a distro-agnostic way determine the OS install date?

I am on a CrunchBang machine and trying to write a script that needs to have the OS install date as a reference. I searched and found this command: ls -lct /etc | tail -1 | awk '{print $6, $7, $8}' ...
3
votes
2answers
2k views

ext4 used space (not -m option, not deleted files)

I'm a bit puzzled about the way ext4 reports used space. On a new Debian wheezy (testing) installation, I consistently got about 1GB extra space used with a 60GB SSD, when compared to du. I then ...
2
votes
2answers
2k views

Can't Get Synaptics Touchpad Disabled

The touchpad comes back to life after a few seconds. The Windows driver had a disable-entirely option. I do not want to use the touchpad at all, so anything up to and including a hardware fix is now ...
2
votes
4answers
1k views

Editing a file without overwrite permission

Is it possible to set permissions for file to keep it editable but without permission to overwrite? I mean possibility to edit the file with text editor, but denying any attempt to replace the file ...
0
votes
1answer
193 views

Battery management - are there differences between distros?

I have heard that Linux, in general, has poor notebook battery management: the battery lifetime is reduced significantly (I have noticed it on my MacBook 2.1 with Ferdora installed) Are there any ...
2
votes
1answer
3k views

how to specify the forwarding port when using multiple tsocks services?

According to the answer of this question, I have my /etc/tsocks.conf containing these lines: path { server = localhost server_port = 1081 reaches = <ip-address-of-server-b>/32 } path { server = ...
4
votes
2answers
1k views

VM benchmark tools?

I would like to benchmark of few XEN-constallations: PV DomU HVM DomU with PV network and disk drivers HVM DomU with emulated IDE and PV network The base will be the same VM with the same disk/cpu/...
2
votes
2answers
2k views

Is my USB hard disk dead?

My USB hard disk started to make some beep type of sound and then stopped working. I have to replug the hard disk to make it work again. After some time same sound is heard and again it stops working....
1
vote
1answer
1k views

confusing about PSS in /proc/pid/maps

I found one great explanation about smaps from info about smaps To my understanding, I thought that shared_clean + shared_dirty + private_clean + private_dirty = rss I wrote a program to ...
4
votes
2answers
1k views

Lost window title bars and everything after selecting bad window theme in Linux Mint

I've selected a window theme from the "Advanced Settings" in Linux Mint 12 which seems to be corrupted and I've lost everything on my desktop. I can't start any applications but I can open the ...
1
vote
3answers
280 views

Am I in the right direction for a linux os?

I compiled the linux kernel by downloading it from kernel.org, put it on my desktop, and opened up terminal. I changed to the linux-3.2.13 folder, typed mr proper. Then I use make menuconfig to ...
3
votes
1answer
1k views

/sys/class/drm directory structure

Who is responsible for creating the "/sys/class/drm" directory structure, more specifically the "/sys/class/drm/card0-LVDS-1" directory? I am using kernel-2.6.38 and an nVidia card.
1
vote
2answers
750 views

Adding an ip to a routing table

Is there any way I can add an ip to an interface , but interface route gets created on a routing table other than 'main' routing table in linux? For ex: If I add an IP 10.11.20.10/24 to eth0, it ...
3
votes
2answers
3k views

How can I force a bash loop to end if it runs x times in x seconds?

I'm trying to grab batches of input from a remote pipe via ssh. My script below works ok, but I would like to add some sort of check into it so that if something were to go wrong or break the loop ...
2
votes
1answer
1k views

How do I restore default owner of files in /var/ directory? [duplicate]

Accidentally in /var/ directory I ran chown root . -R;chgrp root . -R. Now services like mysql don't start. Is there a way to restore default owner and groups? If there is no way, what is the default ...
2
votes
1answer
307 views

How should I start X after ssh'ing into a remote box?

I am trying to syncronize my clipboard with a remote machine using XQuartz and xsel. It works, but only after I run an X windows program: connecting from Mac OS X with Quartz running and the ...