bash print files in directory with path 1

bash print files in directory with path

# Basic syntax:
ls -d "$PWD"/* > list_of_files.txt

Here is what the above code is Doing:
1. ls -d “$PWD”/* > list_of_files.txt
2. ls -d “$PWD”/*
3. ls -d
4. ls
5. “$PWD”/*
6. “$PWD”
7. PWD
8. > list_of_files.txt
9. >
10. list_of_files.txt

Similar Posts