Professional Documents
Culture Documents
Assignment (1) (1) TCL & Icc
Assignment (1) (1) TCL & Icc
7)Find the file location where it is present or that file is present in the
current directory
• To find the location of a file on Linux, use the following command:
find / -name filename.
• To check if a file is present in the current directory, use the
following command: find . -name filename
• To check if a file is present in the current directory, use the
following command: ls filename
8)Find the Disk Space / particular file size/all file sizes/remain space in
the Disk.
• To find the disk space: df -h
• To find the size of a particular file: du -sh /path/to/file
• To find the sizes of all files in a directory: du -h /path/to/directory
• To find the remaining space on a disk: df -h /
9)How to change the mode of the Files.
chmod [options] mode file(s)