Friday, December 9, 2011
Tuesday, December 6, 2011
bash commands shortcuts
http://www.gnu.org/software/bash/manual/bashref.html#Commands-For-History
alt+ctrl+y
yank-nth-arg (M-C-y)alt+ctrl+y
- Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument n, insert the nth word from the previous command (the words in the previous command begin with word 0). A negative argument inserts the nth word from the end of the previous command. Once the argument n is computed, the argument is extracted as if the ‘!n’ history expansion had been specified.
yank-last-arg (M-. or M-_)- Insert last argument to the previous command (the last word of the previous history entry). With an argument, behave exactly like
yank-nth-arg. Successive calls toyank-last-argmove back through the history list, inserting the last argument of each line in turn. The history expansion facilities are used to extract the last argument, as if the ‘!$’ history expansion had been specified.
alt+-
Monday, December 5, 2011
__releases and __acquires macros in Linux kernel
Is used for sparse (a static analysis tool) to check the lock unlock mismatches.
http://lists.linux-foundation.org/pipermail/linux-pm/2006-May/008346.html
use netcat to transfer files between two machines
netcat is a very useful small program to communicate between two machines. If you just want to simply upload a file from one machine to another one, without setting up ftp, ssh server, then you can use netcat (it has many other functions).
commands:
1) listen on a port:
nc -l -p 2222 > log.txt2) send file:cat /etc/passwd nc 192.168.0.50 2222
Friday, December 2, 2011
Thursday, December 1, 2011
Subscribe to:
Posts (Atom)