Unix Assignment With Examples 1
Unix Assignment With Examples 1
Example:
ln -s /home/user/file1.txt link1.txt
Example:
ln /home/user/file1.txt hardlink1.txt
Example:
locate report.pdf
Create a file:
touch file1.txt
Create a directory:
mkdir myfolder
Copy a file:
cp file1.txt myfolder/
Basic listing:
ls
Human-readable sizes:
ls -lh
Move a file:
mv file1.txt Documents/
Copy a file:
cp file1.txt file2.txt
Rename a file:
mv oldname.txt newname.txt
Delete a file:
rm file1.txt