cd's Examples

Change the current directory. The forward slash is to be used in Linux. The example is a Linux directory that comes with all versions of Linux. When you use ls –I you will be able to see more details of the contents in the directory It will list down the Permissions associated with the file The owner of the file The group associated with the file The size of the file The time stamp The name of the file

cd /var/log -

This command is a step ahead of the SFC command. It allows the scanning of the complete drive as against the scanning of the core system files done by the SFC command. This command needs to be run as an administrator, and the syntax is CHKDSK/f (drive name). In the below screenshot, we can see that the command could not be executed as Administrator rights were missing.

Syntax: chkdsk [<volume>[[<path>]<filename>]] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:<size>]] [/b]

Example: chkdsk C: