Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Thursday, December 24, 2009

Linux Commands to Check PC Specs

Below are few of the common commands to check PC specification.
uname -r -> Check Linux Version
cat /proc/cpuinfo -> Check CPU Info


The commands above works in Fedora 8. I believe it should works in other Linux flavor as well. :)

Thursday, November 19, 2009

Emacs Basic Commands

Basic emacs command
===================
ctrl-x ctrl-f (open file)

ctrl-x ctrl-s (save file)

ctrl-c a (resize width to 90 chars)

ctrl-c n (reformat indentation)

ctrl-s (perform searching, search next)

ctrl-r (search backwards)

ctrl-w (highlight the word starting at the cursor)

ctrl-g (cancel pending command)

alt-x grep (perform search disk)
command line will display: grep -nH -e
add: slaveId * (to search for slaveId at current directory, all files)
modify: grep -r -nH -e slaveId * (to search for slaveId at current and
all sub-directories, all files)

ctrl-c 9 (perform make command at current directory)

ctrl-c o (choose similar filename, normally for switching between
header/implementation files)

ctrl-x b (display buffer list, issue ctrl-s to scroll to next file,
to go to the first file in the list)