diff -Nurb "alt" "neu" > file.patch
cd pfad patch --dry-run -p0 < file.patch patch -p0 < file.patch
$ su - tar --exclude /proc --exclude /sys --absolute-names --create --verbose --file - /* |pv |ssh USER@TARGET "gzip >backup.tar.gz"
$ tar -tzf backup.tar.gz
$ tar -xzf backup.tar.gz "/home/*"
$ su - tar --exclude="/boot/*" --exclude="/home/*" -xzf backup.tar.gz "*"
/etc/inputrc set bell-style visible
oder
set bell-style none
Alternativ:
in der Konsole direkt oder in der ~/.bashrc
$ setterm -blength 0
Für X gilt:
xset -b
in der ~/.bashrc
export HISTCONTROL=ignoredups:erasedups
Anmerkung: Die Options “erasedups“ wird erst am Bash Version 3.0 unterstützt. Installation unter Debian mit “apt-get install bash3“
Stören euch auch immer diese Cryptoangaben des Midnight Commander in der Bash History? Bsp: “ cd „`echo -e '\057home\057“
Abhilfe schafft dieser Eintrag in der .bashrc (für den jeweiligen User) oder Global für alle in /etc/profile:
HISTIGNORE=*PROMPT*:*\057* export HISTIGNORE
shopt -s checkwinsize
per Consolebefehl:
ulimit -H -c 0
oder per default in /etc/security/limits.conf
# /etc/security/limits.conf # #Each line describes a limit for a user in the form: # #<domain> <type> <item> <value> # #Where: #<domain> can be: # - an user name # - a group name, with @group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit # #<type> can have the two values: # - "soft" for enforcing the soft limits # - "hard" for enforcing hard limits # #<item> can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open files # - rss - max resident set size (KB) # - stack - max stack size (KB) # - cpu - max CPU time (MIN) # - nproc - max number of processes # - as - address space limit # - maxlogins - max number of logins for this user # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # #<domain> <type> <item> <value> # #* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4 # End of file * hard core 0
none /tmp tmpfs defaults,size=128M,mode=1777,noexec,nosuid 0 0
$ mount | grep tmpfs tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) $ ls -l /tmp lrwxrwxrwx 1 root root 9 Jul 25 2003 /tmp -> /dev/shm//
Quellen: