TRICKS
- Print a man page
- To see the last log
- Cut a file to copy it on a floppy disk
- Poscript in landscape mode
- Print a poscript file on 2 columns
- Analyse execution time with g++
- Compile with option -pg
- Execute the file. (It will create a mong.out file)
- >gprof file > res.txt
- Read the file res.txt
- Get recursively a website
- Replace a pattern in a group of files
- -pi.bak : save old file as *.bak
- -e : do the instruction on each line of the file
- 's:old_pattern:new_pattern' : the instruction
- * : to apply to a group of files
- To see the content of an archive file
- To extract the content of an archive file
- To install a rpm source file (file.src.rpm)
- To check for a multitude of programming errors.
- >man -t name_of_man_wanted
| lpr -P name_of_printer
- >last
- >split -b1300k name_of_file
- ....
>cat xac >> xab
>cat xab >> xaa
- >dvips -t landscape file.dvi -o file.ps
- >psnup -2 file.ps | lpr -P name_of_printer
- >wget -rl http://www.site.org
- >perl -pi.bak -e 's:old_pattern:new_pattern'*
- >nm file.a
- >ar file.a
- >rpm2cpio file.src.rpm | cpio -dimv
- >splint program.c