Sankar 1st
Sankar 1st
EX.NO:1
DATE:
USAGE OF BASIC LINUX COMMANDS
AIM:
1. COMMAND: mkdir
2. COMMAND: ls
3. COMMAND: cd
Description: To change
directory. Syntax: cd dirname
Example: $ cd CSE
Output: $ CSE
4. COMMAND: cd ..
5. COMMAND: cat>
6. COMMAND: cat
7. COMMAND: cat>>
8. COMMAND: cp
Description: To copy content from one file to another within the same directory.
Syntax: $cp oldfile.txt newfile.txt
Example: $cp sample.txt file1.txt
Output : sample.txt file1.txt
9. COMMAND: mv
10. COMMAND: rm
12. COMMAND: vi
Description: It is a command line, an interactive editor that can be used to create and edit file.
Syntax: vi filename.c
Example: vi file1.c
Output:
13. COMMAND: cc
Description: It is a command line, that is used to compile and run a program.
Syntax: $ cc sample.c
Usage : cc pgm.c
RESULT: