Basic-Commands
Basic File Commands π¶
File Navigation¶
- ls - List directories and files π
Example:
Use Case: To list the contents of the current directory. - ls -a - List all files and directories, including hidden ones π΅οΈ
Example:
Use Case: To list all files and directories, including hidden ones. - ls -l - List files and directories in long format π
Example:
Use Case: To list files and directories in long format. - pwd - Print Working Directory ποΈ
Example:
Use Case: To display the current working directory. - cd - Change Directory πΆββοΈ
Example:
Use Case: To navigate to a different directory.
File Management¶
- mkdir - Create a new directory π
Example:
Use Case: To create a new directory. - mv - Move or rename files and directories π
Example:
Use Case: To move or rename files and directories. - cp - Copy files and directories π
Example:
Use Case: To create copies of files and directories. - rm - Remove files and directories ποΈ
Example:
Use Case: To delete files or directories. - touch - Create blank/empty files π
Example:
Use Case: To create empty files.