2
votes
3answers
1k views

Static DNS setup on client of shared internet connection

I've 2 linux computers, one redhat (client), and one ubuntu (set up with shared internet connection as described here) At the moment, on the wired connection between the computers, I can ping the ...
9
votes
1answer
141 views

Strategies for maintaining a reference to a file after it was moved or renamed?

I've had a mac at work lately, and was amazed to see that Xcode would still find my latest project after I renamed its folder and moved it someplace else. Now I understand that this is the result of ...
5
votes
1answer
183 views

How can I set desktop defaults for new users?

How can I set up desktop defaults, much like most distributions do, for every new user? (ex. default wallpaper, apps, etc)
6
votes
1answer
6k views

Copy symlink AND where it points to using rsync

It doesn't need to be done by rsync, but it would be nice not have to write a script to do this, and rsync is very close to what I want. "rsync -a" (or -l) can preserve symlinks, and -L can ...
4
votes
1answer
1k views

Read space as input in shell script [duplicate]

How can I give space " " as input in shell script ? Ex : echo " Enter date for grep... Ex: Oct 6 [***Double space is important for single date***] (or) Oct 12 " read mdate echo $mdate I get the ...
2
votes
2answers
474 views

Organize Email by Date Using procmail or maildrop

I would like to organize all incoming email into the following directory structure based on the date of the email: ROOT --+-- YYYYMMDD --+-- HH --+-- mm --+-- YYYYMMDD-HHmmSS-000001 | ...
4
votes
2answers
1k views

What is the MIME equivalent of uuencode for sendmail?

e.g., I've got files I want to send by sendmail but the receiving mailbox (for posting pictures to my blog) will not accept uuencode files a la $uuencode file | sendmail user@domain I'm guessing ...
18
votes
7answers
3k views

Command-line-friendly full-text indexing?

Is there such a thing as a full-text indexing engine, that can be queried from the command line and ideally wouldn't require using a gui at all ? I'm especially interested in indexing my ebooks and ...
1
vote
1answer
169 views

vnc over ssh port assignment

At the office I have on the servers a vnc server running. In Windows I use putty to connect to the server, I log in and then use realvnc to see the desktop. But I cannot get this to work on Linux. I ...
10
votes
2answers
13k views

What does ^d mean in ls -l | grep ^d?

When I do ls -l | grep ^d it lists only directories in the current directory. What I'd like to know is what does the caret ^ in ^d mean?
13
votes
3answers
5k views

Chainload two Grub2 installations

This is really getting me down. I have Gentoo and Ubuntu, both with Grub2. Gentoo has a dedicated /boot partition, while Ubuntu does not. I have a menuentry in Gentoo's /etc/grub.d/40_custom to boot ...
1
vote
3answers
3k views

What is a vi equivalent of vim's 'set ruler' command?

Is there a way to show the current row and column position in vi? In vim, I know there is the set ruler command, but what are my options when using vi?
4
votes
4answers
2k views

How to “reencode” mp3 files

I have a fair number of mp3 files which I created using audiohijack pro on a mac. Now I no longer have a mac and am using them on my linux systems. Unfortunately the program I use (rhythmbox) to ...
1
vote
1answer
725 views

How do I fix Global Shortcuts when they stop working in KDE?

I recently had Global Shortcuts stop working in KDE 4. I asked around on forums and chat rooms for solutions. Some people mentioned kded. I tried reinstalling. After about a week I upgraded all my ...
42
votes
4answers
29k views

How do I run a command as the system administrator (root)

I need to run a command with administrative privileges. Someone said I should run a command as root. How do I do this?
2
votes
3answers
2k views

How to install xfontsel on Fedora 13? Any alternative?

I need xfontsel to select right font for xterm. But its not installed. I tried yum but it returned Warning: No matches found for: xfontsel No Matches found I googled for xfontsel source code ...
18
votes
4answers
7k views

Save complete GNU screen session state

Is it possible to persist the "state" of a GNU screen window (or just a standard shell) so that I can reload everything after a reboot: The number of opened shells The name of each shell The current ...
39
votes
4answers
4k views

Alternative to .bashrc

Is ~/.bashrc the only place where I can specify user specific ENV Variables, aliases, modifications to PATH variable, etc? I ask because it seems that ~/.bashrc would be BASH only...
29
votes
5answers
6k views

How to echo a bang!

I tried to create a script by echo'ing the contents into a file, instead of opening it with a editor echo -e "#!/bin/bash \n /usr/bin/command args" > .scripts/command The output: bash: ...
2
votes
1answer
378 views

Drive was unable to assemble into the array

I ran mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 Only /dev/sdb1 was loaded into the array though. I have a few more arrays on the same two drives too. Each time the partition on sda failed. dmesg told ...
5
votes
1answer
543 views

How to use the ul command line utility

I wanted to answer http://unix.stackexchange.com/questions/3043/use-roff-to-underline-words with "just use ul, this command is meant specifically for underlining text", however I just can't grasp how ...
3
votes
1answer
258 views

Use _roff to underline words

I currently have a file that I'd like to pass through a _roff to format with underline a few words in the file, and then view the file in less. Just a few, mind you, not whole sections or anything. ...
58
votes
16answers
16k views

Is there an easy way to replace duplicate files with hardlinks?

I'm looking for an easy way (a command or series of commands, probably involving find) to find duplicate files in two directories, and replace the files in one directory with hardlinks of the files in ...
6
votes
3answers
8k views

How can I install perldoc on Ubuntu?

Ubuntu 10.10 comes with Perl 5.10.1 pre-installed, but strangely enough perldoc isn't part of the package. $ perldoc You need to install the perl-doc package to use this program. How can I make ...
16
votes
3answers
4k views

What are the pros/cons of the various methods to block brute force SSH attacks?

There are a number of different packages out there to shut out IPs from which brute-force SSH attacks are launched on your system. For example: DenyHosts Sshguard fail2ban What are the pros/cons ...
50
votes
4answers
46k views

What do the options `ServerAliveInterval` and `ClientAliveInterval` in sshd_config do, precisely?

I found this question, but I'm sorry I don't quite understand the settings on the two variables ServerAliveInterval and ClientAliveInterval mentioned in the accepted response. If my local server is ...
1
vote
2answers
181 views

Frontend for libsane for manual batch scans,

Platform: Linux I have several documents that I want to batch scan without autofeed. Basically meaning that after a scan I want to "flip the page" and press a button to scan the next page, in the end ...
12
votes
3answers
6k views

How to get rid of desktop environment and use a window manager only?

I have been using xterm for all my work. I realized that the features that desktop environments like GNOME has to provide are not of much use to me. Now, is it possible that I remove GNOME and KDE ...
35
votes
3answers
20k views

How can I calculate the size of a directory?

How to know the size of a directory? Including subdirectories and files.
2
votes
1answer
2k views

Am I installing CentOS 5.5 right?

I'll probably be in here a bit over the next few months. The only exposure I've had to Linux is just some basic dabbling with Ubuntu and using Knoppix as a recovery DVD for when things go wrong. I ...
7
votes
4answers
661 views

Changing the bash prompt

Where is the setting that determines what the bash prompt looks like? Specifically on Arch, but I'm sure others would like to know for other distros too if it's different. Speficially I'd like to use ...
14
votes
1answer
2k views

Is there a back-“button” in w3m?

Does w3m offer a keyboard shortcut to go back one page? I couldn't find anything in the man pages.
6
votes
2answers
848 views

linux: How to determine the best filesystem format?

About a year ago I changed from running Windows as dual boot to very rarely running Windows as a VM. As a result most of my partitions are in ntfs ( so I had access on both sides of the boot ). I have ...
6
votes
1answer
1k views

What does the 'a' attribute in lsattr mean?

I was trying to remove some old history from my .bash_history file, but I was receiving this message: [john ~] /home/john $ mv .bash_history .bas mv: impossible to move `.bash_history' to `.bas': ...
4
votes
1answer
4k views

What is the Linux equivalent of the Windows registry?

I have a DVD+-RW drive that has quit working. Apparently many users of this laptop model experience the same problem under windows and are required to edit the registry to correct the problem. So ...
1
vote
2answers
788 views

How can I shutdown after unmounting a USB device from the command line?

Previously, I asked this question about how to suspend Linux after a set amount of time. I would like to ask a similar question. Supposing I have a USB device attached to my system (OS = Fedora 13), ...
4
votes
3answers
21k views

How do I mount a WD MyBook World network drive in linux?

I have a WD MyBook World NAS on my home network. I currently use this for Time Machine backups for my Mac but I'd also like to use it as a backup location for my linux box which is running Ubuntu ...
4
votes
1answer
783 views

Gnome menu panel blank space

I'm having a problem in the top menu panel since a couple of days, some space has been created between some icons and I don't know how to remove it. A screendump: Does anyone know what the reason ...
3
votes
2answers
928 views

rpd over https using a linux client

I posted this on SuperUser but I thought this would be the better audience. (So sorry for crossposting...) My employer switched from vpn and rdp to using what our admin calls "rdp over https". Since ...
22
votes
5answers
30k views

How do I convert an epoch timestamp to a human readable format on the cli?

How do I convert an epoch timestamp to a human readable format on the cli? I think there's a way to do it with date but the syntax eludes me (other ways welcome).
17
votes
5answers
8k views

Is there a parallel file archiver (like tar)?

Is there something out there for parallel archiving of files? Tar is great, but I don't use tape archives, and it's more important to me that the archiving happens quickly (with compression like ...
23
votes
8answers
23k views

Different ways to execute a shell script

There a several ways to execute a script, the ones I know are: /path/to/script # using the path (absolute or relative) . script # using the . (dot) source script # using the `source` command ...
4
votes
2answers
3k views

Finding the offset for ext4 partition

I've created an image of my hd with dd, but grub was installed on it, and I'm trying to figure out how to mount the image file, but mount doesn't recognise it as an ext4 partition because of the grub ...
5
votes
2answers
1k views

What is the Linux equivalent of bootinfo command?

bootinfo for AIX: ...shows whether the hardware in use is 32-bit or 64-bit. What command/utility for Linux would do this job?
17
votes
1answer
11k views

What are stripped and not-stripped executables in Unix?

From man file, EXAMPLES $ file file.c file /dev/{wd0a,hda} file.c: C program text file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses ...
4
votes
2answers
4k views

Is there a way to empty the trash/wastebasket from the command line?

This would be great especially considering the latest version of Ubuntu is very slow when displaying directories on my PC...
2
votes
1answer
1k views

LS_COLORS settings for specific types of files

I'm trying to set up my color scheme for ls, and I'm having trouble finding information about exactly what parameters I have to work with, or where those come from. And especially setting colors for ...
8
votes
2answers
10k views

using sudo on GUI applications

When I was using kubuntu, I could always open X applications with sudo, sudo kate for example. Now that I've switched to arch that doesn't work. I know I've always been told to use kdesu, but what ...
4
votes
1answer
236 views

What's the best way to configure shared filesystem directories? (beyond standard unix perms)

I have multiple users on my system. I'd like to have shared directories like music, video. pictures etc. The problems is that I want users to be able to write any new files to any directory, but not ...
6
votes
2answers
578 views

How does searching a file (locate) or autocompletion work?

I am a Windows user and coming from Windows with all the indexing and eternal wait times when searching for files, I find it surprising how fast does locate work or the autocompletion (that I know) ...

15 30 50 per page