M-x man OR
M-x woman Isn't Emacs awesome?
C-_, undo on emacs can also be done using C-/ and C-x u, though I don't like the last one.
M-x server-start
OR, add it to your .emacs file;; Start the emacs server
(server-start)
.bashrc.### Open emacs in console mode, non-gui
alias em='emacs -nw'
### Tell running emacs to visit a file
alias ecf='emacsclient -n'
### Start emacs with new frame
alias ecn='emacsclient -nw -c'
ecn and it would start a new Emacs instance but still show me the buffers from the existing one. C-x 5 0
sudo dd if=/dev/sdd of=/dev/null bs=50M count=11+0 records in
1+0 records out
52428800 bytes (52 MB) copied, 2.62946 s, 19.9 MB/ssync; echo 1 | sudo tee /proc/sys/vm/drop_cachessync; echo 2 | sudo tee /proc/sys/vm/drop_cachessync; echo 3 | sudo tee /proc/sys/vm/drop_caches
"echo something > /proc/somewhere", especially when you got to use "sudo". echo value | sudo tee /proc/somewhere
.bashrc file: stty ixany
stty ixoff -ixon
$HOME folder at work and for no apparent reason I reached that limit a couple of days back. So, there was something that had created 50K files in $HOME and I did not know about it.$ for x in `find $HOME -name "[.]*"`; do echo "$x has `find $x | wc -l` file"; done$HOME/.thumbnails that had around 47776 files. It appears that Nautilus creates thumbnails of every picture or PDF that you have opened. However, Nautilus does not delete the files.$ find ~/.thumbnails -type f -atime +7 -exec rm {} \;$ gconf-editordesktop -> gnome -> thumbnail_cache change the values for maximum_age and maximum_size
linux-2.6.31.12. Not sure if these will work for any previous or later versions.make menuconfig and select the followingmake bzImage; make modules; sudo make modules_installbzImage, System.map and .config into /boot kgdboc=ttyS0,115200 kgdbwaitttyS0. Boot into your kernel. It will wait for gdb to connect.vmlinx by starting gdb gdb ./vmliux(gdb) set remotebaud 115200(gdb) target remote /dev/ttyS0(gdb) continue make htmldocs to convert into a readable format. You would have to install xmlto first. sudo aptitude install xmlto should help. sudo touch /forcefsck
sudo shutdown -r now
dmesg | grep "tty"ttyS0), create the /etc/event.d/ttyS0 file with the following contents# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from
# the point the system is started until it is
# shut down again.
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /sbin/getty -L 115200 ttyS0 vt102 /etc/securetty and add ttyS0console=ttyS0,115200n8 tty1sudo tail -f /var/log/kern.log > /dev/ttyS0minicom and set the port as the one you are talking on, it could be ttySn or ttyUSBn depending on if you are using a serial port or a USB to serial converter. (e.g. ttyS0, ttyUSB0)gtkterm if you don't fancy the command line applications. Also I would recommend using konsole to run minicom within as it supports unlimited buffer, which can be very useful if you are trying to look at the /var/log/kern.log of the target machine, for example. # echo 8 > /proc/sys/kernel/printk