0% found this document useful (0 votes)
64 views8 pages

OSG202

This document provides instructions for basic Linux terminal commands including creating directories and files, viewing file contents, copying/moving objects, renaming, deleting, changing directories, viewing the current directory, and searching/compressing files using commands like mkdir, ls, cp, mv, rm, cd, pwd, find, grep, gzip, zip, and tar.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views8 pages

OSG202

This document provides instructions for basic Linux terminal commands including creating directories and files, viewing file contents, copying/moving objects, renaming, deleting, changing directories, viewing the current directory, and searching/compressing files using commands like mkdir, ls, cp, mv, rm, cd, pwd, find, grep, gzip, zip, and tar.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Open Terminal windows

Type “sudo -i”

Create a directory: mkdir and view the directory or file: ls


Create a file: there are many ways to create a file
View the file content
Copy a file/ directory: cp
and
Move objects: mv
Rename: mv

Delete a file: rm

Delete the empty directory: rmdir and Change to the directory: cd


View the current directory: pwd

Searching: find, grep, whereis, which


Zip or unzip: gzip/ gunzip, zip/unzip, tar

You might also like