Directory Related Commands + Useful ls Variations + Removing File Forcibly - UNIX/LINUX Tutorials

Опубликовано: 17 Октябрь 2024
на канале: Gourav Suri
200
8

Topics Covered in this video:

Removing a File Forcibly:
Command : rm -f filename

ls Variations:
ls * : Lists the sub-contents of the contents of the current directory
ls -s : Lists files with their sizes (in blocks not bytes)
ls -i : Lists files along with their inode numbers
ls -r : Lists all files in the present directory including the files present in any subdirectories that may be present in the current directory

Directory Related Commands:
pwd : Path Working Directory
mkdir directoryname : Creates directory
mkdir -p : Create multiple generation of directories at one go
mkdir -m 754 directoryname : Create directory with the specified permission irrespective of the umask value
rmdir directoryname : Deletes directory
rmdir -p directoryname : Remove not only the specified directory but also its parent directory
cd directoryname : Change directory/ Take you in specified directory
cd : Simply cd will bring you back to the home directory