UNIX Commands
 


#1 To create a symbolic link, the syntax of the command is similar to a copy or move command: existing file first, destination file second. For example, to link the directory /export/space/common/archive to /archive for easy access, use:

 ln -s /export/space/common/archive /archive

#2 number of lines in files

wc -l *.c

#3 directory size

du -ms ** 

#4 number of files in the directory

ls -1 *.h *.c *.cpp | wc -l

#5 aliasing

alias make=~/home/user/bin/gmake

#6 merging files

cat $1/a.doc >> $2/a.doc