Basic Linux Commands.pdf - Basic Linux Commands 1. Syntax:...

This preview shows page 1 out of 1 page.

Basic Linux Commands1.Syntax:pwdgives the path of current working directory.2.Syntax:lsgives list of all the available directories.3.Syntax:mkdirto make a new directory.mkdir newuser4.Syntax:rmdirto remove a directory.rmdir newuserif directory is empty only andrm -r newser/ifnewuser directory is not empty.5.Syntax:cd newuserto change directory.cd ..to come out of newuser directory.6.Syntax:touchto create an empty file.touch t1.txtandrm t1.txtto delete this text file.7.Syntax:catto create a file and write something in it.cat t1.txt8.Syntax:cpto copy a file inside a directory. `cp t1.txt newuser/9.Syntax:mvto move a file to a particular directory.mv t1.txt newuser/and `mv directory1/filenamedirectory210.Syntax:clearscrolls up the screen.clear
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture