Ubuntu Operating System Lab Lecture 2
Ubuntu Operating System Lab Lecture 2
1. cat Command
2. Hidden Files
3. Showing Contents of a File
4. How to Append Files
5. How to Concatenate Files
6. cp Command
7. mv Command
8. rm Command
cat command
q cat > test.txt
This is a test.
q To save the changes press CTRL-d i.e. press and hold CTRL and
press d. Create another text file called bar.txt as follows:
Exercise
q To delete a file
Syntax: $ rm filename
Example: $ rm ex1
q To delete all files
Syntax: $ rm *
q Rm –d dir_name (empty directory remove)