Articles in ‘Unix’

Unix > run command in the background

Monday, March 30th, 2009

nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. It is most often used to run commands in the
[...more...]

Find Files

Friday, February 22nd, 2008

Find files that contain a text string:

grep -lir "some text" *

The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r des
[...more...]

Unix Basics

Monday, January 14th, 2008

Au weia, Jahre kein Unix gesehen und dann das...

Mache eine Sicherheitskopie von allen html files in einem Verzeichnis, natürlich mit Unterverzeichnissen, aber nimm nicht den ganzen anderen Müll mit... vielleicht geht es ja auch schneller, abe
[...more...]

RCS

Monday, January 7th, 2008
use RCS to version your edits: winscp:
 checkout: co -l !&
 checkin: ci -u !&
init:
 rcs -i ! (not working in winscp)

Useful Aliases

Friday, September 14th, 2007

 alias a alias
 alias la 'ls -a'
 alias ll 'ls -l'
 alias dir 'ls -l'
 alias cd 'set old=`pwd`; chdir \!*;pwd'
 alias back 'set new=`pwd`; chdir $old; set old=$new; pwd'
 alias wint 'echo -n "\033]0;${USER}@${HOST}\007"'

[...more...]

Unix Prompt

Monday, May 7th, 2007
here is my current Unix prompt (I would appreciate if someone could tell me how I put in the name of the current user ("whoami"). %n only gives me the name of the user that started the shell, but if I do a "su someone", I'd like to see his name here). A ni
[...more...]