Basics Review Questions
Using basic commands
Answer and try out:
- What command would you use to display your current location in the file system?
- Which command shows the list of files and directories in your current location?
- What command would you use to create a new directory called "projects"?
- Which command allows you to change your current directory?
- What command would you use to view the contents of a text file without opening an editor?
- Which command creates a copy of a file?
- What command would you use to create an empty file?
- Which command displays detailed information about files including permissions, ownership, and timestamps?
- What command would you use to remove or delete a file?
- Which command shows you the username you're currently logged in as?
- How would you list files in a directory which is not the current directory?
- How would you run a program (binary executable) called myprog that exists in the current directory?
- How would you create a directory called d15 under the current directory?
- How would you show the list of directories that are searched when trying to run ls?
- What is the difference in the types of the commands:
- ls
- cd please show these types.