Copyright (C) 2000 M K Saravanan http://www.mksarav.org Written on 15th June 2000. Last modified on Sat Nov 15 01:58:01 SGT 2003 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. You can download a copy of the license from http://www.gnu.org/copyleft/fdl.txt ============================================================================== 1. Check which version of kernel you are running. uname uname -r 2. What is your working directory? pwd 3. What are the directories you found under / ls -l / 4. You can find help by using man command. Try the following: man ls man mkdir To quit from the man, type "q". 5. Make a directory called "tmp" under your home directory. For e.g. my home directory is /home/mksarav mkdir /home/mksarav/tmp cd /home/mksarav/tmp 6. Write a small program using "pico" editor. Note down the last two lines in pico which shows the help message for various command. pico test.c #include int main(void) { printf("Hello World\n"); return 0; } Press ^X (Ctrl & X) to save and exit 7. Run the test.c program using gcc compiler. gcc -o test test.c Here -o option refers the output file name (test). test.c is the source file name. you can run the compiled program using: ./test Here . represent the current directory. Unlike DOS, unix won't search the current directory. So if you refer executable files in current directory use . 8. Try the following commands and find out what they are doing. who w date finger 9. Are you aware of file & directory permissions for unix files? check it with: ls -l 9. To list the contents of a file use: cat test.c 10. To view a text file page by page use "more" (or) "less" command. Actually "less" is more than "more" since it allows you to scroll backward also. "less" has lot more features. For more details RTFM (Originally refers "Read The Fine Manual" - commonly called as Read The Fucking Manual in Unix News group.). To quit from more, or less type "q". 11. Try the following: cat /usr/doc/HOWTO/DOS-Win-to-Linux-HOWTO | more cat /usr/doc/HOWTO/DOS-Win-to-Linux-HOWTO | less cat /usr/doc/HOWTO/DOS-Win-to-Linux-HOWTO | pr Watch the output in the last command using pr. 12. Now try the following: head /usr/doc/HOWTO/DOS-Win-to-Linux-HOWTO tail /usr/doc/HOWTO/DOS-Win-to-Linux-HOWTO man head man tail Try to extract the first 15 lines using head and last 15 lines using tail. Note: You can download the HOWTO documents from http://www.tdlp.org. ==============================================================================