Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

0
votes
3answers
101 views

File Privileges

There is one user Lets call him B and he needs access Just to Read the File MEANS READ ACCESS and that file is own by another user A . How can I grant access to user A's file to User B.
1
vote
1answer
231 views

How do I restore authentication for Debian Lenny synaptic package manager?

My neighbor calls me to fix things when his cats walk on his keyboard and cause problems that he can't fix. This time it happened while he was running synaptic package manager. After the reload, ...
0
votes
2answers
679 views

Split large txt file into certain small file

I have a txt file which is formatted as 250,000 * 3600 (3600 rows and 250,000 column) I am going to split it into 3600 small txt which each file is 250,000 * 1. I understand the split can basically ...
0
votes
1answer
527 views

how to have root partition LVM for RHEL 5.8 64 bit on AWS EC2

I am new to this and I have to create a RHEL 5.8 Amazon Machine Image (AMI) in which the root partition should be a logical volume. I know how to create a data partition as a logical volume but am not ...
3
votes
1answer
724 views

Checking linux Kernel for RT-Preempt Patch

How to know whether a particular patch is applied to the kernel? Especially RT-Preempt Patch.
2
votes
2answers
552 views

Checklist for a painless distro-migration for a workstation: what should I keep in mind?

I have long been frustrated and unsatisfied with the setup I have at work. I have been running OpenSuSE 11.3 with great joy, but as it phased out of official existence I tried out 11.4, got lots of ...
4
votes
1answer
1k views

What's the second column of ls -l say? [duplicate]

Possible Duplicate: What is the number between file permission and owner in ls -l command output? I've been using Linux for years now and I'm embarrassed to say that until now I didn't ...
2
votes
1answer
4k views

How to set up disk mirroring (RAID-1)

I have a computer with two WD 1TB drives and I want to configure disk mirroring on it. I tried setting up RAID during the installation by creating RAID partitions but that does not work for me. Is ...
3
votes
2answers
570 views

Meaning of log entries from an iptables configuration

My router has Linux as its OS. The system log has a lot of rows about iptable and klogd that I don't understand, could someone explain them to me? The iptables setup: iptables -t nat -A PREROUTING ...
1
vote
1answer
139 views

Is there any way to attach latrace to an already-running process?

I want to trace a running multi-threaded process's library calls. As of 5 November 2012, there's only one way to get ltrace to fully support tracing multi-threaded processes: you must check out and ...
1
vote
1answer
1k views

Drop_caches doesn't drop caches?

Sometimes I see my swap file is a bit bigger then usual. I tried sync && echo 3 > /proc/sys/vm/drop_caches to no avail. But when I tried swapoff -a it takes a bit longer but the swap file ...
0
votes
1answer
1k views

glibc malloc() uses mmap() for small blocks of memory allocation?

I learned that on Linux the glibc’s malloc() uses mmap() for very big chunk of memories and brk() is used for small allocations. However that does not seem to be the case when I experiment the theory ...
1
vote
2answers
383 views

Unique lines with unique words

Help me to print unique lines in Linux. Word examples like A B B C C D A E F G H I I J the output should be F G H I I.e., the line should be unique at first and the words in the line should ...
3
votes
3answers
1k views

Can't add large number of rules to iptables

I made a very simple bash script (echo at start, runs commands, echos at end) to add approx 7300 rules to iptables blocking much of China and Russia, however it gets through adding approximately 400 ...
0
votes
2answers
670 views

Is a shell script is a programming Language [closed]

This is the first question in UNIX: I was started shell script from 2 days before. But I have a conflict: is a shell script a special programming language for a specific shell??
1
vote
1answer
1k views

Error when restarting Postfix

I have recently purchased an SMTP server for my web app (I need to send account confirmation emails to my users and I don't want them to go into the SPAM folder, I will also be using it for email ...
2
votes
1answer
450 views

Recover MDADM Raid 5 in LVM with badblocks

I'm pretty sure I'm dealing with at stuffed RAID 5 array. Two of the drives were listed as failed in /proc/mdstat and mdadmdetails: 0 0 8 33 0 active sync /dev/sdc1 ...
20
votes
5answers
39k views

How to list all files in the size order

I would like to list all files in the order of big to small in size and the files could be present anywhere in a certain folder.
1
vote
1answer
769 views

Unable to install CentOS in VirtualBox

I am trying to install CentOS 5.6 in My VirtualBox but I got this error on boot screen. Your CPU Does not support long mode : use a 32 bit Distribution My CPU is 64 bit I checked that using uname -a ...
2
votes
1answer
172 views

Max Open Files, clarification needed

On my machine, ulimit -n returns 2560 Given that -n returns The maximum number of open file descriptors. Does it mean that system won't allow more then 2560 open files to be out there at any ...
0
votes
0answers
415 views

Upgrade Firefox in Linux Mint 10

For some reason a while ago I was no longer able to use the Firefox that came with my Linux Mint 10 virtual machine. I've installed the new version of Firefox (16) using both the package manager and ...
2
votes
1answer
898 views

“[sdc] Assuming drive cache: write through” Need to hide this message!

When you plug an external drive into my Ubuntu server this message pops up "[sdc] Assuming drive cache: write through"... I would really like it so it stops sending it to the screen. Any ideas on how ...
5
votes
1answer
545 views

Creating a NAT from loopback to a remote server

My goal is to redirect connections from the local host to a remote server, and be able to change the remote address on the fly, without any client config changes. I can do this now using a nat on the ...
4
votes
2answers
3k views

Set default sound card in Pulse Audio

I have two soundcards on my systems and pulseaudio always picks the wrong one. How do I set up the default soundcard in the pulse audio preferences?
1
vote
0answers
62 views

Looking for a picture describing Linux concept [closed]

I'm looking for a picture describing Linux and open-source concept. I remember I saw it once on the Internet. It depicts airplane which is being assembled by mascots of open-source world. They bring ...
4
votes
0answers
2k views

How do I find out the device node corresponding to my device in SuSE 8?

I'm forced to work with a bunch of point-of-sale systems running SuSE 8. They are my client's computers. We are stuck dealing with these old systems until they get to upgrade their whole fleet to SLE ...
3
votes
1answer
1k views

Ctrl-Alt-F1 not working from X

I have a system running Debian 5.0 that doesn't respond to Ctrl-Alt-F# (1-6) Check if Ctrl, Alt, F1 and F2 are intercepted correctly... $ DISPLAY=:0 xwininfo xwininfo: Please select the window ...
5
votes
1answer
219 views

Alphabetizing names in `ls` alias with .files not intermingled

I am currently using the following ls alias: alias ls='ls -alhGkpsq --color=auto'. This results in following directory listing. [03:35] bryson@brys ~ :$ ls total 48K 4.0K drwx------ 4 bryson 4.0K ...
4
votes
2answers
1k views

Getting linux webcam state via command line or API

I would, preferably, like to know of a command I can run that will let me know whether a webcam is on/off or recording/not recording, etc. Maybe a way to see if any programs are currently accessing it ...
1
vote
0answers
302 views

How can I renew lease when it kept printing eth0 lease expired x seconds ago?

My guest VM cannot get an IP address from my host. It keeps printing: eth0: lease expired x seconds ago I've tried to start dhclient -r and dhclient and restart eth0 to no avail, see here for ...
0
votes
1answer
132 views

Cent OS 6.3 Hidden files in shell

I need help, I want to be able to check whether a file is hidden or not in Cent OS 6.3. These are often referred to as (dot) files but I can clearly see Cent OS 6.3 handling these by appending a ...
1
vote
0answers
88 views

Running Tomcat MySQL and Apache under a group

I am trying to set up a web server at home using Ubuntu, but prefer my bash scripts to be platform agnostic hence why I am asking here. I also dislike apt-get everything. I am trying to create a ...
2
votes
0answers
749 views

Debian Squeeze: connect to A2DP (bluetooth) through command line

I would like to turn my Lacie NAS into a A2DP bluetooth source, in order to stream audio to a bluetooth audio sink. The NAS runs Debian Squeeze in a chroot environment, and is connected to a Bluetooth ...
0
votes
2answers
214 views

Copy files from source machine to LiveCD

I'm working on distributing a version of Fedora to our internal development team using Live CD. There are certain files I would like to copy to the live cd that are not: part of an RPM or going to ...
1
vote
0answers
275 views

Set default Soundcard Centos

How do I set my default soundcard on Centos/Linux? I have two soundcards installed on my system and it always detects the wrong one, upon boot.
12
votes
3answers
13k views

Linux, disable /dev/fd0 (floppy)

Is it possible to make Linux kernel completely ignore the floppy disk controller? I do not have the drive but obviously my motherboard does contain the controller. I would like to disable the /dev/fd0 ...
1
vote
1answer
142 views

How do I count the exact total of created and deleted sqlite journal files?

I'm trying to figure this out. Scenario is this: A threaded tcp socket daemon with a sqlite back-end stores information in a unique sqlite2 file per IMEI ID, in an unique sub-directory per day ...
4
votes
1answer
2k views

Does free() unmap the memory of a process?

I am running a C program on Linux 2.6.16 kernel. I do not think there are memory leaks in my program however the memory consumption for the program remains stable after certain operations and does not ...
3
votes
1answer
3k views

What is the GNU/Linux equivalent of BSD's “route get …”?

The BSD route command has a feature that will show what route will be selected for a given host. For example: /Users/mhaase $ route get google.com route to: iad23s07-in-f8.1e100.net destination: ...
0
votes
0answers
123 views

Troubleshooting span traffic shutdown interface?

I'm using guardium appilance, which has one of its port used to analyze span traffic. The base os is linux. The span traffic stopped coming during some time of operations. I asked the network team, ...
4
votes
1answer
201 views

Unix and Linux without a file system?

I was reading Eric Raymond's the Art of Unix Programming, (Amazon and online) and at the very beginning of the book where he analyses what Unix does wrong he says: Having a file system at all may ...
0
votes
1answer
68 views

What mode of memory at the time linux kernel was loaded?

Can anyone tell me what the memory mode is at the time linux kernel is loaded (by bootloader)? As this link says, the memory mode is real mode then the linux kernel will ask user to choose video mode ...
1
vote
1answer
113 views

changing the partition of a linux

I have a ubuntu system as a virtual system on Virtual Box. It uses VHD as its hard disk. I manged to change the size of VHD using VHD resizer, now I want to expand the partition on vhd so it uses the ...
0
votes
2answers
305 views

Any temporary fix for / being remounted as read-only?

My disk has a few bad sectors and has already failed the SMART tests. It obviously is going down. It gets remounted to read only and I have to fsck and reboot all over again. Is it safe for me to ...
4
votes
1answer
453 views

How can I script the creation of a single partition that uses the entire device?

I am specifically using this to partition and mount EBS volumes on Amazon EC2 instances, but really this should be generally applicable to initializing any new drive. As the question says I want to ...
5
votes
1answer
3k views

Do not halt the boot if an fstab mounting fails

I have this line in my fstab: sshfs#ecarroll@o99:/opt/dealermade/ftp/inc /opt/dealermade/ftp/inc fuse defaults,idmap=user,users 0 0 For whatever reason it didn't work -- that's fine. How do I make ...
2
votes
1answer
125 views

Whole disk image incremental save and restore

I want to create a whole disk image and some incremental of them. First I created a disk backup with dd if=/dev/disk1 of=/Volumes/USBDrive/diskimage.img bs=1024k and there is my problem: how can I ...
0
votes
0answers
436 views

Running 'Leafpad' on terminal opens Gedit

I am running leafpad on the terminal but it opens gedit instead. Any Ideas why this happens? I am using Openbox btw.
2
votes
2answers
2k views

exec() and system() system calls

I do understand that while exec() does not return after it executes in Unix ,system() may or may not return depending on the situation.But can anyone explain why exec() system call does not return and ...
1
vote
1answer
409 views

How to get 'TZ' with out '$TZ' being set?

I writing a Ruby program. I need a way to get something like America/New_York as ActiveSupport::TimeZone and require "tzinfo" can't get my current timezone. (Note that Time.now.zone can get things ...