13
votes
4answers
3k views

Rock-stable filesystem for large files (backups) for linux

What filesystem would be best for backups? I'm interested primary in stability (especially uncorruptability of files during hard reboots etc.) but how efficiently it handles large (>5GB) files is also ...
2
votes
1answer
291 views

How does fcron knows whether the job was run?

I recently migrated from vixie-cron to fcron on my laptop. I have a question: how does fcron knows if a particular job was run in given period of time? As a file can change during running, what ...
8
votes
2answers
2k views

How to power off a system but still keep it available on the network

I'm looking into installing a file server on my network, for serving data and backups. I want this machine to be available at all times, but I would rather not keep it on all the time (as to conserve ...
53
votes
15answers
5k views

How do you choose a distribution? [closed]

I'm currently looking at putting a Linux (although BSD is still an option) distribution on my old laptop. However, I'm not sure how to wade through all of my options - rolling releases versus not, ...
17
votes
6answers
6k views

Is there a way to limit the amount of memory a particular process can use in Unix?

I need to test a process for memory management. I do not have the source, so I need to do all the testing from the OS side. I want to be able to say something like limitmemory 400k -p <pid> ...
3
votes
1answer
3k views

What does “Empty print file” mean and how can I diagnose it?

When trying to print I get this error. What does it mean? How can I diagnose it?
48
votes
5answers
4k views

Redirecting stdout to a file you don't have write permission on

When you attempt to modify a file without having write permissions on it, you get an error: > touch /tmp/foo && sudo chown root /tmp/foo > echo test > /tmp/foo zsh: permission ...
5
votes
1answer
6k views

Vim 7.3 with Lua: How do I use it?

The latest Vim release is awesome! I compiled it with --enable-luainterp=yes and it does have the Lua feature: % gvim --version | egrep '\+lua' +linebreak +lispindent +listcmds +localmap +lua +menu ...
3
votes
1answer
1k views

DVD drive constanly spins up/down when idle

DVD drive constantly spins up/down when idle on notebook. I cannot track what is causing it. The process of spinning up/down is quite noisy and disturbing. lsof cannot find anything that have device ...
5
votes
1answer
1k views

ipfw : Traffic Shaping

I'm not sure what but it seems like I'm doing something wrong... my objective is to be able to limit some of my traffic, to be exact www traffic. One of my clients os running what's called a ...
4
votes
2answers
4k views

change prompt color depending on user or root in zsh

in zsh you can have a %# in your PS1 (or whatever PROMPT variable) which basically means display % if user or display # if root. I'm wondering if there is any way to affect this so that the % or # ...
2
votes
1answer
302 views

vi mode doesn't display correctly on new term

This is a continuation of my previous questions. I currently have the following in ~/.zsh.d/functions.sh function zle-line-init zle-keymap-select { psvar[1]="${${KEYMAP/vicmd/}/(main|viins)/-- ...
4
votes
1answer
3k views

What does 'patch unexpectedly ends in middle of line' mean?

This is the output of my patch command: Hunk #11 merged at 4184,4190. Hunk #12 merged at 4444. Hunk #13 merged at 4944. Hunk #14 NOT MERGED at 5106-5116. Hunk #15 merged at 5290. Hunk #16 merged at ...
2
votes
5answers
353 views

X-based email for reading mail from cron jobs

Can anyone give a recommendation for a simple X-based equivalent of mail / mailx for reading the mail I get from cron jobs?
2
votes
4answers
4k views

Linux partition table

What kind of partition table does Linux create by default? Is it msdos? Is it different depending on the Linux distribution used(I'm using Ubuntu)? Is there any command line utility I could use to ...
18
votes
3answers
20k views

Comparing two files in Vim

Is it possible to view two files side-by-side in Vim? If so, how can I set up my editor to do this, and is there a way to diff between the two files within Vim? I am aware of the :next and :prev ...
5
votes
4answers
4k views

Passing an argument to multiple commands in a single line

I'd like to be able to run multiple commands on the same file in a single line. The way I currently do this is: commandA file && commandB file && perl -ne '...' file My gut instinct ...
10
votes
4answers
527 views

The future of OpenSolaris

since OpenSolaris is more or less abandoned by Oracle, is there a nice alternative that implements the unique features of OSOL? ZFS is one thing, but I liked the image creation system, that let you ...
8
votes
6answers
243 views

Grab certain contents of a file

So I know tools exist for this problem because I've heard about them, but I don't know what they are. I want to do something like filter out all data but the usernames in /etc/passwd. For example, I ...
18
votes
3answers
30k views

How do I switch from an unknown shell to bash?

I was surprised that I didn't find this question already on the site. So, today $ came up after I logged in as a new user. This was unexpected because my main user's prompt starts with ...
5
votes
2answers
2k views

Does cut support non-white-space to white-space delimeters?

The default delimiter in awk is white-space to non-whitespace change. The default for cut is the tab character. Can I tell cut to use non-white-space to white space delimters? E.g. a: foo bar ...
10
votes
1answer
9k views

How to test swap partition

I'm trying to diagnose some random segfaults on a headless server and one thing that seems curious is that they only seem to happen under memory pressure and my swap size will not go above 0. How can ...
5
votes
2answers
678 views

Resources for very low-level (board bring-up)

I've worked with a few embedded systems, but now I'd like to make my own piece of hardware and despite a pretty thorough knowledge of Linux, I have no idea how to get Linux up and running on new ...
11
votes
2answers
1k views

Clearing GNU Screen after full-screen application

When working at a normal xterm (not sure about a "real" terminal), when a full-screen program such as man or vim is closed, it disappears, leaving your screen so you can see your prompt, and previous ...
19
votes
5answers
4k views

Why is echo a shell built in command?

$ which echo echo: shell built-in command. $ which ls /bin/ls $ which cat /bin/cat Why is echo not an independent utility like ls, ps, cat etc? Why is it shell specific? Any good reasons?
1
vote
3answers
662 views

How can I write an OpenSuse script that will change my boot menu.lst file and add “nomodeset” automatically both to failsafe and normal boot option?

How can I write an OpenSuse script that will change my boot menu.lst file and add "nomodeset" automatically both to failsafe and normal boot option? (This script is for suseStudio I'm going to write ...
7
votes
5answers
2k views

How does “top” command show live results?

How can I write a shell script that shows the results in real time? Something like the top command that updates the results after some fixed intervals of time.
7
votes
6answers
210 views

Is there any program to provide a consistent interface across multiple archive types?

At the moment, if I download a compressed file, it could be any of a .tar.gz archive, a tar.bz2 arhive, a .zip archive or a .gz archive. And each time I do so, I have to remember what the command line ...
32
votes
2answers
23k views

What is the Fedora equivalent of the Debian build-essential package?

What is the Fedora equivalent of the Debian build-essential package?
1
vote
2answers
2k views

Tell mplayer to prevent the screensaver from kicking in while playing

I know mplayer has some heartbeat setting but I don't recall what it is, could anyone tell me? another one of those annoying things that used to just work and somewhere along the line stopped being ...
2
votes
2answers
1k views

Installing a second hard drive

My system currently runs an XBMC live install. I am installing a second hard drive in my system, but I am somewhat of a linux newb and only know the basics. Since it is XBMC I believe I need to do ...
5
votes
2answers
2k views

Hide processes from other users based on groups (under Linux)?

Is it possible to configure process hiding for certain user groups under a linux system? For example: Users from group X should not see processes owned by users from group Y in ps/top or under /proc. ...
14
votes
3answers
3k views

I accidentally chmod -R +x on a directory. How do I restore the correct permissions?

Well, to be specific, it was chmod -R 755. Now every file is executable, which I don't want. I am thinking that I should look at the first two bytes of each file for the #!, but will this cover ...
4
votes
1answer
1k views

Tunnel traffic through another machine over ssh

I want to be able to route a portion of my traffic through another machine over SSH. For example, is it possible to browse the web through the ssh tunnel and also browse the web through your LAN ...
6
votes
1answer
2k views

Support for usb 3.0?

I could not seem to find the question here but I was wondering what experience if any users have had with USB 3.0? My asus p5x58d has usb 3 on it but I have yet to try it out and also do not know ...
4
votes
3answers
9k views

Convert ascii code to hexadecimal in UNIX shell script

I'd like to convert ASCII code (like - or _ or ., etc.) to hexadecimal representation in the Unix shell (without bc command), eg : - => %2d. Any ideas?
88
votes
1answer
99k views

How to set default file permissions for all folders/files in a directory?

I want to set a folder such that anything created within it (directories, files) inherit default permissions and group. Lets call the group "media". And also, the folders/files created within the ...
2
votes
1answer
1k views

How to zip individual files from different directories in one line?

I want to zip numerous files from different directories(paths) in one line. How can I do that?
3
votes
2answers
268 views

Configuring IPoD on Linux

I use Fedora 13 and very recently i brought a new Apple iPOD shuffle. I would like to know whether i can transfer music without using iTunes into my iPOD. I tried using gtkPOD and RhythmicBox, but ...
20
votes
5answers
3k views

How to yank a particular line without moving the cursor in vim?

For example How can I yank and paste Line 4 only to Line 12 without having to move the cursor to Line 4?
11
votes
2answers
1k views

Heavy write activity on SSD nukes system performance

I've noticed that when I do heavy write applications, the whole system slows down. To test this further I ran this to do a (relatively) low-CPU, high disk activity: john -incremental > file_on_SSD ...
154
votes
11answers
46k views

Preserve bash history in multiple terminal windows

I consistently have more than one terminal open. Anywhere from two to ten, doing various bits and bobs. Now let's say I restart and open up another set of terminals. Some remember certain things, some ...
7
votes
3answers
2k views

What does the -f parameter do in the tar command

When using tar I always include -f in the parameters but I have no idea why. I looked up the man and it said; -f, --file [HOSTNAME:]F use archive file or device F (default "-", meaning ...
15
votes
5answers
4k views

How can I edit a large file in place?

I have a few files sized > 1 GB each. I need to remove last few bytes from the files. How can I do it? I prefer to edit file in place to save disk space. I am on HP-UX.
2
votes
1answer
1k views

Rsync protocol name full path,not a module

Is it possible to name the full path to source directory in rsync command instead of the name of the module. For example: rsync -av rsync://10.171.73.23/home/user/work/tests . instead of : ...
8
votes
2answers
3k views

How to make screen -R attach to the youngest detached session?

I'm using screen on debian lenny, and I would like to use the -R option. From man screen: -R attempts to resume the youngest (in terms of creation time) detached screen session it ...
7
votes
4answers
1k views

How to set up two-factor authentication with OTP on FreeBSD?

I have a FreeBSD hosted server that I like to be able to get to from anywhere. Normally I use SSH publickey to log in, or if I don't have my SSH private key available then I might use regular password ...
2
votes
2answers
454 views

Is nohup indefinite?

If I run a program with an infinite loop with nohup, will the program run indefinitely (until the machine is reset or until I manually terminate it)?
0
votes
2answers
183 views

Caching bugzilla webpages for offline use

I have a long wifi free journey ahead of me and I would like to continue to productively review bugs even without the ability to change them. Is there an easy way to cache all the pages generated ...
89
votes
6answers
27k views

Where did the “wheel” group get its name?

The wheel group on *nix computers typically refers to the group with some sort of root-like access. I've heard that on some *nixes it's the group of users with the right to run su, but on Linux that ...

15 30 50 per page