Session 1: Introduction to Linux
|
| --" Linux OSC"
| | --" Documents"
| | | -- " file1.txt" , " file2.txt" , " file3.txt"
| |
| | -- " .hidden_file"
| | -- " -"
| | -- " My_Documents"
| | | -- " file1.txt" , " file2.txt" , " file3.txt"
| | -- " file2.txt" , " file3.txt"
Step 1: Create Your Directory
~ $ mkdir " Linux OSC"
~ $ cd " Linux OSC"
Linux OSC $
Step 2: Make Another Directory and Create Multiple Files
Linux OSC $ mkdir Documents
Linux OSC $ cd Documents
Linux OSC/Documents $ touch file1.txt file2.txt file3.txt
Linux OSC/Documents $ ls
Linux OSC/Documents $ cd ..
Linux OSC $ touch .hidden_file
Linux OSC $ ls -a
Linux OSC $ nano Documents/file1.txt
Linux OSC $ cat Documents/file1.txt
Linux OSC $ cd Documents
Linux OSC/Documents $
Step 6: Create a Unique Directory
Linux OSC/Documents $ mkdir " -"
Linux OSC/Documents $ cd ./-
Linux OSC/Documents/- $ cp -r ../../Documents ../../My_Documents
Linux OSC/Documents/- $ ls ../..
Step 8: Show Hidden Content
Linux OSC/Documents/- $ cat ../../.hidden_file
Linux OSC/Documents/- $ mv ../file2.txt ../file3.txt ../../
Linux OSC/Documents/- $ ls ../../
Step 10: Remove Your Directory
Linux OSC/Documents/- $ cd ~
~ $ rm -r " Linux OSC"