Linux Tips
In linux, three different ways are available to list files and folders in the current working directory. They are
- Using echo command
- Using dir command
- Using ls command
1. Using echo command
- This command is used to show the list of files and folders in the current working directory with special option * or *.*
Syntax
echo *.* or echo *
Example
2. Using dir command
- This command is also used to show the list of files and folders in the current working directory.
Syntax
dir
Example
3. Using ls command
- This command is also used to show the list of files and folders in the current working directory.
Syntax
ls
Example