http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial
diff & patch Tutorial
Leave a reply
http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial
$ diff -rq dir1 dir2
-r --recursive Recursively compare any subdirectories found. -q --brief Output only whether files differ.
$ man bc $ bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. scale=10 1/1000000 .0000010000 obase=16 ibase=2 11010001 D1
mount -o bind /proc /home/hsr/root/proc sudo mount -o bind /proc /home/andreas/jailroot/proc sudo mount -o bind /dev /home/andreas/jailroot/dev sudo mount -o bind /sys /home/andreas/jailroot/sys sudo mount -o bind /run /home/andreas/jailroot/run
Advanced Bash-Scripting Guide – External Filters, Programs and Commands
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;\w\a\]$PS1"
;;
*)
;;
esac
[root@data /home/bachi]# atacontrol list
ATA channel 0:
Master: no device present
Slave: no device present
ATA channel 1:
Master: no device present
Slave: no device present
ATA channel 2:
Master: ad4 <Maxtor 33073H3/YAH814Y0> ATA/ATAPI revision 6
Slave: no device present
ATA channel 3:
Master: ad6 <Maxtor 6L300R0/BAJ41G20> ATA/ATAPI revision 7
Slave: ad7 <Maxtor 6L300R0/BAJ41G20> ATA/ATAPI revision 7
[root@data /home/bachi]# egrep 'ad[0-9]|cd[0-9]' /var/run/dmesg.boot
ad4: 29312MB <Maxtor 33073H3 YAH814Y0> at ata2-master UDMA100
ad6: 286188MB <Maxtor 6L300R0 BAJ41G20> at ata3-master UDMA100
ad7: 286188MB <Maxtor 6L300R0 BAJ41G20> at ata3-slave UDMA100
Trying to mount root from ufs:/dev/ad4s1a