Linux refers to the family of Unix-like computer 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

0
votes
1answer
268 views

Linux: Automatically restart 3rd party process once pegged at 100%

Is there any generic way to monitor a process and restart it automatically if it's pegged at 100% CPU for over x seconds? I'm battling some bugs in Mono's fastcgi server and while I search for a fix ...
5
votes
3answers
1k views

Different SSH/Login Password From SUDO Password

I'd like to use a different password to elevate my user to sudo status than the password I use to login (either via GUI, shell, or SSH) to my account. Is this possible? EDIT: Since setting the root ...
1
vote
2answers
2k views

udev rule not being executed

I have the following device that udevadm lists as: looking at device '/devices/pci0000:00/0000:00:1c.7/0000:09:00.0/usb6/6-2/6-2:1.0/ttyUSB0/tty/ttyUSB0': KERNEL=="ttyUSB0" ...
4
votes
2answers
323 views

Give user write permissions to directory owned by other group

I have a directory foo with drwxr-x--- someuser somegroup and some files created in that directory foo that have read permissions for the owner, group and other. How can I give user otheruser write ...
5
votes
2answers
1k views

is there a way to read the cumulative size of all files in a folder?

I want to read the size of a folder from the command line. ls -lh shows all folders as being 4k, which presumably is the size of the footprint of the folder itself, rather than the contained files. ...
1
vote
4answers
3k views

can dd be used to wipe clean a directory?

I have a directory on a Mint install that I want to wipe clean (not just delete the pointers, actually zero the info off the drive). is it possible to clear the data by using dd? For example, if the ...
1
vote
1answer
520 views

How to create and deploy Linux images

The goal is to create an image of a Linux operating system with specific scripts, in-house software and OS packages installed which is then put on a CD. This CD is then sent to customer, they put it ...
3
votes
1answer
415 views

How does ArchLinux handle dependency conflicts?

In the traditional release model, all packages in a release are compiled with the same version of the compiler against the same versions of libraries, and the release team carefully pick software ...
1
vote
2answers
2k views

What is file descriptor 10?

What is file descriptor 10? Real-world example (where standard output is ignored, standard error redirected to standard output and data from file descriptor 10 is redirected to standard output) that ...
3
votes
4answers
5k views

Why does apache write its own process ID in httpd.pid?

I am new to Apache and debugging issues caused by it. I have come to understand that when Apache starts up, it writes its own process ID in httpd.pid in a human-readable format as explained here. I ...
4
votes
1answer
117 views

Running a command on all files that contain a string

I'm finding a bunch of files with find . -exec grep -l mypattern {} \; What's the simplest, most elegant way to run a certain command separately on each of the resulting list of files?
0
votes
1answer
284 views

Disable SELinux context

I've a RHEL 5 machine with SELinux disabled. sestatus -v SELinux status: disabled What is the effect of SELinux context on a user's home directory? ls -lZ -d zxtdfg drwx------ zxtdfg dba ...
0
votes
1answer
230 views

What do Inst and Conf refer to when using the command apt-get in Linux?

When I run the command apt-get install flashplugin-installer I am displayed the following lines of details Inst flashplugin-installer [11.2.202.233ubuntu0.11.04.3] (11.2.202.235ubuntu0.11.04.1 ...
0
votes
0answers
338 views

Why do the commands apt-cache showpkg and apt-cache show display different results in Linux?

I am looking to update a particular package on several Linux systems however when I run the commands apt-cache showpkg {name_of_package} it displays a higher version of the package is available e.g. ...
0
votes
2answers
361 views

Bind shortcut switch to a specific application

I usually have several applications running on my workstation. Usually I need VIM, Google Chrome and Terminal and some other applications that I don't always need, e.g. mail client, IM, VLC, etc. It ...
1
vote
2answers
797 views

Can i scp to an sftp-only server with RHEL5?

I have a RHEL5 box with sftp access to a central server. No ssh, not anything else but sftp. SFTP is nice, but it's interactive. I've heard of scp variants that use sftp protocol under the hood, ...
1
vote
1answer
147 views

Mount physical disk with swap included

I'm using VirtualBox and a virtual hard disk, formatted as a swap partition, for booting a virtual machine with a USB key. The guest machine is Ubuntu 10.04. I realized that there's no swap partition ...
0
votes
0answers
426 views

windows crashing after installing fedora 16

I have HP dv6 pavilion. I installed fedora 16 in it along with windows. I installed fedora on a separate partition. After installation I booted to windows, but it crashed. It shows a "starting windows ...
1
vote
4answers
234 views

is there a better way to move folders up a directory than mv?

I downloaded a rather large filestructure (>100GB) to a subfolder of my root directory, lets call it /folder. The problem is, I accidentally copied it into a subfolder of that folder, rather than ...
0
votes
1answer
202 views

network traffic download and upload links and paths

I want to get details of my pc's network traffic in details.. i.e. the urls of the uploads and the downloads.. all the network traffic monitors that I tried show the receiving and sending bytes and ...
1
vote
1answer
943 views

Flash player problems in Chrome on Linux Mint 12

I have pretty funny problem with flash player, I can view movies from youtube, but flash does not save my usage data and don't let me change prefferences. Problem occurs only if I install adblock and ...
0
votes
1answer
2k views

Install any Linux flavor on Macbook Pro early 2011

I am trying to install Linux on my MacBook Pro. I would prefer Fedora but XUbuntu or Ubuntu is fine also. The firmware does not support the last Linux versions. The only OS I could install was ...
3
votes
1answer
2k views

Remove Grub 2 Blockfiles from Partition eg. /dev/sda1

In the process of setting up an encrypted Windows partition along with a dual booting Ubuntu, I have had to install the GRUB bootloader onto a partition /dev/sda1 instead of the MBR. In this setup ...
0
votes
1answer
499 views

emacs won't start due to “No fonts match `Inconsolata-12'”

Several weeks ago, I tried to customize my default font face Emacs 21.4.1 running on CentOS 5.5, and now emacs won't start. emacs will start with the -fn flag. However, I can't find where ...
1
vote
2answers
2k views

How to autostart xbindkeys?

I use xbindkeys for managing my hotkeys in Gnome 3 but it doesn't have a daemon so I added it to .xinitrc. ~$ cat .xinitrc ck-launch-session gnome-session nohup xbindkeys & Strangely, this ...
1
vote
0answers
4k views

Cannot delete a route in redhat linux

I have the following entry in a redhat linux machine to reject the private network route: Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 - ...
3
votes
2answers
4k views

What does mean sudden “Text file busy” when calling a script?

bash: ./myscript: /usr/bin/env: bad interpreter: Text file busy "myscript" begins with #!/usr/bin/env python. Just retrying starting it fixed the problem. Why system program env sporadically ...
0
votes
2answers
208 views

Change Linux System Time Relatively

I need a script which will modify the system time by x amount of minutes. Something like: #time = 12:56 #x = 2 if time_bool: time = time + x #time = 12:58 else: time = time - x #time = ...
1
vote
0answers
750 views

Monitor AMD/ATI GPU memory usage under linux

Is there a way to monitor the GPU memory usage of ATI graphic cards under linux? I found several solutions for nVidia graphic cards, but nothing for ATI graphic cards. It might be possible with ...
3
votes
2answers
13k views

Linux support for Intel GMA 3650

I recently purchased an Intel D2700DC motherboard and I quickly realised there are no Linux drivers for the integrated graphics (Intel GMA 3650). Does anyone know if there will be any driver in the ...
1
vote
1answer
4k views

How to change the memory PAGE_SIZE?

I'd like to know the following: The default memory PAGE_SIZE in linux is 4096 bytes, how to change this size on a running system? How the hugepages work in linux and how to set the hugepage size? ...
0
votes
1answer
70 views

How do I cycle through from top to bottom when passing a pattern in command: in Linux?

I came across the post at Linux 'man' command: How do I search for a word/phrase and cycle through? which explains the ability to cycle to the next pattern but how do I get it cycle through ...
0
votes
2answers
1k views

What is “Sudo -Hiu” for?

I followed a tutorial to install Hudson server. In the tutorial was the following Linux command (hudson is a username in Ubuntu): sudo -Hiu hudson What is sudo -Hiu for? What happens after I ...
0
votes
2answers
492 views

Strange characters in Linux console

I don't know how I've exactly managed to do this, but when I now invoke some commands (like man man or less) I see strange ESC[1 characters on the screen. It looks like this: The interesting part ...
0
votes
1answer
178 views

vsftp on RedHat (CentOS) - Is there a way to disable uploading files by mime/type or extension?

E.g. disable "*.file, .html" uploads? Or enable only ".avi" and "*.mov" etc.
0
votes
1answer
1k views

vsftp on RedHat (CentOS) - make file-size and number of files quotes for anonymous uploads?

We have vsftpd service on our server but I didn't find a way to put limits on file size and total space available for anonymous file uploading (doing it via an account will make it harder - as our ...
4
votes
2answers
3k views

Remap Ctrl-A in GNU Screen

I have been using GNU screen for a couple of days and the CTRL-A navigation is beginning to wear on me. How can I remap this key combo and what are some common replacements for these keys? For ...
1
vote
1answer
447 views

how to remove clipping from audio using sox?

i am looking to use -G or -v to limit a track's volume to avoid clip. sox audio1.wav -G audio2.wav or sox audio1.wav -n stat -v 1.000 sox -v 1.000 audio1.wav audio2.wav but nothing works as ...
3
votes
1answer
611 views

How to set the command prompt's color in Bash?

Browsing the last command's results in Bash is a bit hard because the command prompt and results are the same color. This makes it hard to separate the results of consecutive commands. How do I ...
2
votes
2answers
128 views

How to show progress during the loading of a large sql dump?

I'm occasionally running gzcat dump.sql.gz | mysql5 -uroot -p dbname which can take hours to complete. Is there a simple, elegant way to show some progress percentage?
2
votes
2answers
5k views

How to determine whether a directory is on an NFS mounted drive?

How can I determine whether a given directory on a Linux machine is from an NFS mounted drive or not?
1
vote
2answers
487 views

on linux, what is DATA in top command output for java application?

I have a JBoss application running on linux platform, it has top output like below(not accurate data actually): PID USER PR NI VIRT RES SHR S %CPU %MEM CODE DATA TIME+ COMMAND 1379 ...
0
votes
3answers
127 views

wait for kernel after creating partition with sftdisk on linux

I am creating a partition with sfdisk under linux. After partition creation I want to create a filesystem. This fails with mkfs.ext3 not finding the partition: echo ",,L" | sfdisk $DEVICE mkfs.ext3 ...
2
votes
3answers
2k views

How to know whether a audio file is CBR or VBR?

File size of an CBR(Constant bitrate) audio recording can be calculated using a formula: File Size (Bytes) = (sampling rate) × (bit depth) × (number of channels) × (seconds) / 8 E.g., a 70 minutes ...
1
vote
1answer
848 views

Filesystem for Linux OS on cheap thumb-drives (liveusb)

Simple version: what filesystem (or more complex setup, perhaps) is best for use on a liveusb system? LiveUSB system with filesystem directly on the drive, not one with compressed system image a-la ...
5
votes
3answers
4k views

Linux “top -c” to show full command

What parameter can help me to display the full command using top -c? For example, I have one of the oupput from top -c 5073 mysql 20 0 298m 12m 4668 S 0 0.0 29:27.46 /usr/sbin/mysqld ...
1
vote
1answer
4k views

Can't boot after installing Ubuntu 12.04 on my notebook

I installed Ubuntu 12.04 on my notebook but I can't boot. The status is a black screen and no key works. Strangely, I can boot the Ubuntu as a next method: Plug USB stick (install program) Boot ...
2
votes
2answers
2k views

Apparent size of Sparse files

I created a Sparse-file of 8 GB using dd if=/dev/zero of=/sparse-file bs=1 count=0 seek=8G Then I did echo "test" >> /sparse-file I see that du -sh sparse-file gives 16K and du -sh ...
0
votes
1answer
110 views

File permission vs umask value

If the umask value is 002 for a user, the directory created will have the permission of 775 & files created will have 664, that is we subtract the umask value 002 from 777 for directories & ...
11
votes
1answer
4k views

dd performance on Mac OS X vs. Linux

I was trying to copy an iso of the windows installer onto a hard drive to avoid burning a disk. I first tried Disk Utility's restore function, however it didn't like the ISO for some reason. Then I ...