ls command csh script file - kashyapp1/github_exp GitHub Wiki
ls command file
link: https://github.com/kashyapp1/github_exp/blob/main/ls1.csh
ls commands with different options | description |
---|---|
ls | Display contents of working directory |
ls * | Display directories with sub-directories |
ls -a | Display hidden files/directories inside working directory |
ls -l | List the contains of directories in table format |
ls -la | List the contains of directories including header files |
ls -lh | List the file/directories with size of file/directories |
ls -d * / | List only directories |
ls -R | List all files & directories with their corresponding subdirectories down to last file |
ls -r | Display file/directories in reverse alphabetical order |
ls -S | Display file lists according to their size |
ls -lt | Sort the list by displaying modified files at top |
ls -ltr | Sort the list by displaying modified files at bottom |
ls / | Display the contents under root directory |
ls ~ | List the contents under home directory |