ENT_-_Lec_04_-_Manage_Files_and_Directories

ENT_-_Lec_04_-_Manage_Files_and_Directories -...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
    Enterprise Network Technologies –  Linux / Open Source Software Ali Sajjad Assistant Professor CSE Dept ali.sajjad@seecs.edu.pk
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Manage Directories and Files
Background image of page 2
    Change and List Directory Contents The prompt of a shell terminal contains the current  directory (such as  geeko@da51:~ ) The tilde “~” indicates that you are in the user's  home directory You can use the following commands to change the  active directory and list the contents of a directory: cd ls pwd
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    cd You can use the command  cd  (change  directory) to change between directories
Background image of page 4
    ls The command  ls  ( list ) lists the specified files If a directory is included with  ls , the directory's contents  are displayed Without any option, the contents of the current directory  are listed
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    pwd You can use the command  pwd  (print  working directory) to display the path of the  current directory
Background image of page 6
    Create and View Files To create and view files, you need to know  how to do the following: Create a new File with  touch View a File with  cat View a File with  less View a File with  head  and  tail
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Create a New File with  touch You can use  touch  to change the time stamp  of a file or create a new file of 0 bytes
Background image of page 8
    View a File with 
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

ENT_-_Lec_04_-_Manage_Files_and_Directories -...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online