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

3
votes
2answers
158 views

Lost everything after using install-mbr

I was dual booting Windows 8 and BackTrack5 but I erased the MBR while using easyBCD. So I tried this… sudo install-mbr -i n -p D -t 0 /dev/sda1 /dev/sda1 was the primary partition in my ...
6
votes
2answers
2k views

Inotifywait for large number of files in a directory

What I want to do is, to monitor a directory (not recursive, just one) for new files created and append those files to one single big file as they are being written. The number of files that are ...
3
votes
2answers
663 views

Why doesn't `head -c 2 /dev/hwrng` work?

I have an Atmel 97SC3201 in my computer and set the following in the kernel: CONFIG_HW_RANDOM_TPM CONFIG_TCG_TPM CONFIG_TCG_ATMEL /dev has tpm0 and hwrng, but running this command returns the ...
2
votes
2answers
1k views

Running K3b from the command line

I wish to run K3b from the command line. I do not mind if it opens windows, as long as I do not have to click in them and they ultimately close. Specifically, I wish to run k3b --copy /dev/cdrom. This ...
4
votes
2answers
28k views

mount Linux NFS. rpc.statd is not running

I have Ubuntu 12.04 as the NFS server. The clients are Linux. My /etc/exports file has 1 line, /folderToExport *(rw,async,no_subtree_check) /etc/init.d/nfs-kernel-server status shows that the ...
9
votes
3answers
13k views

How do I change the screen font size when using a virtual console?

Using LDXE and Ubuntu, I can log into a virtual console via Ctrl+Alt+F1. The text is far too small. How do I change the screen resolution to get a larger font?
7
votes
2answers
237 views

/sys/ documentation?

Are there any man pages on the /sys/ directory and how devices are setup? I'm hoping that there may be something similar to man proc, but cant really find anything to push me in the right direction.
3
votes
2answers
1k views

Can you create a volumegroup in LVM that all the Logical volumes created under it will be thin provisioned?

I would like to know if it is possible to create a volumegroup in LVM that all the Logical volumes created under it will be thin provisioned? This will be used on RHEL 6 which does include thin ...
3
votes
1answer
82 views

stat on an encrypted volume in osx takes a long time

My workstation is a MacBook Pro with an SSD. For security reasons, my main volume is encrypted. I ran this command on a folder: time find . -exec stat {} + >/dev/null real 0m5.205s user ...
13
votes
1answer
5k views

How do pdflush, kjournald, swapd, etc interoperate?

Recently saw a question that sparked this thought. Couldn't really find an answer here or via the Google machine. Basically, I'm interested in knowing how the kernel I/O architecture is layered. For ...
3
votes
1answer
93 views

Can you think of a way to stop the generation of a core file WHILE it is happening?

I was just wondering if you can think of a clever way to stop the creation of a core file while it is being produced. I understand that there are several way to disable the creation like setting ...
4
votes
1answer
978 views

BCache and disk encryption

I recently bought a new laptop with a 16Gb mSATA SSD cache drive. I haven't used that one yet. I have, however, opted for Ubuntu 13.04 with "Full Disk Encryption" for the main partition (is that ...
0
votes
1answer
623 views

Which tasks/commands can't be executed with user gid=0 but not uid=0 on Linux [duplicate]

In a Linux server I will have an user with gid=0 but it's uid won't be 0. As there are many commands with root:root and execute permissions for group I know there will be a lot of administrative task ...
2
votes
1answer
11k views

Installing debian 7 besides windows 8

I ask this question in superuser but no one can answer my question, I hope any one can help me: I bought a VAIO laptop which Windows 8 preinstalled on it in UEFI mode. Now I want to install Debian 7 ...
0
votes
1answer
2k views

Identify Tasks/Process which are 7 days old in linux

How can I identify the processes running since 7 days in Linux?
1
vote
2answers
2k views

Why is my wlan0 interface on Angstrom (Beagleboard) “Not Associated”?

I'm installing a Angstrom (custom build, not the default build) on a Beagleboard XM. I can scan for wireless networks using iwlist and see the neighborhood wireless devices. I have set my SSID and ...
5
votes
3answers
18k views

List all files in a directory recursively but exclude directories themselves

Simple question, I'm running the following find command: find . -type d \( -path ./.git -o \ -path ./log -o \ -path ./public -o \ -path ...
-1
votes
1answer
818 views

GParted doesn't recognize the unallocated space after my current partition

I'm using GParted to resize my partitions on Linux. There is about 5GB of unallocated space following the partition sda5. However, when I right click on sda5 and select 'resize/move', it doesn't show ...
2
votes
1answer
101 views

Boot up problem with RHEL 6

I restarted my RHEL 6 box and now I can't get past the logo screen. I tried booting without the splash screen so I could see what's going on, and I'm getting an error message saying something along ...
3
votes
3answers
1k views

Privilege escalation detection?

I am not a linux/unix expert but everytime when I read about some local privilege escalation exploit (e.g. this), I wonder if an OS can detect that there is someone logging in as root (or new root ...
9
votes
1answer
1k views

How to configure Linux to cache file metadata in preference to contents?

I’d like to set the system up to use most RAM for file system metadata caching, but only a reasonably small amount for read/write caching and prefetching files. Ideally I would like to be able to ...
1
vote
1answer
68 views

JOIN command does not return results

I am trying to join 2 large files(1 file is 699M and other is 20GB). Both the files have only 2 columns. The command I am using is: join -1 2 -2 1 -t , -o 1.2,0,2.2 file1 file2. When I try the command ...
-2
votes
1answer
431 views

Configure Clock on different port other than port 80 in CentOS

I installed CentOS 6.4 & noticed that port 80 is being used by Clock application [root@l-22733-p11 logs]# lsof -i tcp:80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME clock-app ...
-1
votes
1answer
66 views

While using ssh with Gui script it is giving error

When I'm using the line below in script: ssh -Y user@host /home/user/xxx (xxx is gui script will open GUI window) It is giving me error as below: xauth: not found. stty: : Not a typewriter X11 ...
1
vote
0answers
598 views

Need help understanding to errors in /var/log/messages

Recently I've been checking my log and found two weird errors which I don't understand. The first one: May 22 08:11:00 localhost dbus: [system] Rejected send message, 1 matched rules; ...
2
votes
1answer
723 views

Is it Safe to write to linux Partition from Windows?

I do tasks some of which require Windows while some require Ubuntu and thus I sometime need to access linux from windows, though the reverse is easily possible. So, I searched in google and got an ...
2
votes
1answer
1k views

Measurement of free ram through /proc/meminfo with ramdisk (initrd)

I am booting a disk image via PXE, it is a full system on an initrd ramdisk. I would like to measure the actual free memory of the system (not including buffers and file system caching). I was told ...
1
vote
1answer
631 views

restore filesystem after fdisk

I split a partition in two with fdisk, but after rebooting I've got partition in FAT filesystem (was ext4). What's can be wrong? And how to fix it or get data from bad partition? I hope this is ...
0
votes
0answers
31 views

compat-drivers-3.9 crash video card driver

I try to install wireless driver on my linux with compat-drivers-3.9. After installing compat-drivers-3.9 linux , the video driver seems to be crashed. The resolution is not correct. How can I restore ...
2
votes
2answers
5k views

How to remove a locally installed library?

I had just compiled and installed libc locally into my home directory. Sadly, after this, virtually every basic utility like ls and xz failed to function. The error message prompted up when ...
0
votes
0answers
101 views

unexpected bash behaviour after console login (openSUSE)

I'm trying to install a Linux OS on the computer I use as a home server, because I liked "Raspbian" so much on my Raspberry Pi. I created a custom linux using openSUSE Studio, that's just text based ...
1
vote
2answers
512 views

obtaining kernel build tree

Could anyone explain me what the kernel build tree is? What files does it include? How can I obtain it from a cross-compiled kernel source (e.g. 3.4.0)?
11
votes
3answers
12k views

What is the best practice for adding disks in LVM

According to the Linux manpages you can add raw disks as well as partitions to a volume group. In other documentation (RedHat, CentOS or openSUSE), all examples refer to adding partitions to the VG ...
2
votes
0answers
473 views

Including pending update list in motd

How would you include the list and / or count of pending updates in the welcome banner? Eg. username: User password: ***** Hi 'User', welcome on 'localhost' There are 8 pending updates, you need to ...
3
votes
2answers
4k views

How to change the Linux Mint Nadia splash screen?

I was wondering if it is possible for me to change the splash screen when Linux Mint is loading? I am talking about the logo of mint which appears when you start the computer. If so what kind of file ...
4
votes
4answers
13k views

What type of permissions should a user's home directory and files have?

I'm working with a fresh install of Ubuntu 12.04 and I've just added a new user: useradd -m testuser I thought that the -m flag to create a home directory for users was pretty standard, but now ...
3
votes
2answers
5k views

Why there are two ifcfg-eth0 file but in different directory

I am trying to understand why there are 3 ifcfg-eth0 on my CentOS 6.4 server, they are hardlinks to the same file looks like. Anyone knows why ? $ ll /etc/sysconfig/network-scripts/ifcfg-eth0 ...
4
votes
1answer
1k views

Change ip addr label in Linux

How can I change the eth0 zero to eth0:1 using ip addr without deleting. When I run ip addr show eth0 Here is the output 2: eth0: mtu 1500 qdisc mq state UP qlen 1000 link/ether ...
-3
votes
1answer
272 views

How does using linux affect your career and computer skills overall? [closed]

so I would really love to move to linux as my only OS, i had linux installed several times(different distros) But i always go back to windows. Sad, i know Anyway I'm really into computers, i like ...
2
votes
1answer
3k views

Ignore Symlinks when Extracting Tarball

I have a relatively simple question that I cannot seem to find the answer for. I am attempting to extract a tarball (*.tgz, to be exact) and receiving terminal errors on extracted symlinks. ...
13
votes
2answers
2k views

How to Save X Session — ArchLinux+Openbox

I use Arch Linux and Openbox. How can I save the state of my current openbox/X session and later restart them? The scenario is like this: I've several browsers windows open, terminals, file ...
5
votes
2answers
2k views

Which set of commands will limit the outgoing data rate to X kbps for traffic to or from port Y?

I have a Raspberry Pi, and I'd like to have bitcoind running on it. This consumes a lot of my outgoing bandwidth at times, so I'd like to make sure it never uses more than 20 KB/s for Bitcoin data. ...
4
votes
1answer
15k views

“No such file or directory” on an executable, yet file exists and ldd reports all libraries present

So by any other command the executable file exists, yet when I try to execute it, it claims it is not there. It is not a special character in the name because I renamed it though a "cat". And it ...
7
votes
3answers
767 views

Dynamic file content generation: Satisfying a 'file open' by a 'process execution' [duplicate]

I have a read-only file, F. A program, P, that I'm not the author of, needs to read F. I want the content of F to come from another 'generator' program, G, whenever P tries to read F (taking F to ...
6
votes
2answers
9k views

How to find speed of wlan interface?

I'm trying to find speed of network interface using file-descriptor. It's easy to do it for ethX, just calling cat /sys/class/net/eth0/speed. Unfortunately this method doesn't work with wireless ...
0
votes
1answer
2k views

Undestanding the output of route -n

Can someone explain me what the out put of route -n? # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 ...
4
votes
2answers
2k views

How do I detect wheter the audio cable is connected?

I'm using Ubuntu Lucid (10.04). In my shell script running as root I want to detect whether an audio cable (analog jack) is connected to the laptop or not. How do I do that? I don't need a portable ...
1
vote
2answers
499 views

What does longterm mean on kernel.org?

It's fairly easy to understand EOL, mainline and stable kernel, but I'm not sure about longterm here, What does it mean, or how does it differ from stable kernel?
4
votes
2answers
3k views

Option “user” work for mount, not for umount

I am experimenting mounting options for a program I am writing. I am running Linux Mageia 2. I added the following line to /etc/fstab /dev/sr0 /mem auto user,noauto, 0 0 and I removed all other ...
3
votes
2answers
522 views

Create custom wordlist

I want to create a custom list of (scientific) words for purposes like spell checking and OCR based on my collection of scientific papers in pdf format. Using pdftotext I can easily create a text file ...