It has been an interesting 5 days of learning devOps and you guys have been so wonderful with the Encouragement; Thanks guys!!!
So i decided to test myself on all i have learnt so far by participating in a practical lab questions set by my Teammate and senior, motivator and mentor in Tech. He is also a member of this platform; His name is UWABOR COLLINS
i will be sharing the questions as well, so you all can also play with with them. Enjoy guys!!
LAB QUESTIONS
- How do you check the current working directory?
- How do you create a new directory?
- How do you navigate to a directory?
- How do you list all files and directories in a directory?
- How do you display the contents of a file?
- How do you create a new file?
- How do you rename a file?
- How do you delete a file?
- How do you copy a file to a new location?
- How do you move a file to a new location?
- How do you create a symbolic link to a file?
- How do you search for a file by name or content?
- How do you change the owner of a file?
- How do you change the permissions of a file?
- How do you create a new user account?
- How do you change the password for a user account?
- How do you switch to a different user account?
- How do you log out of a user account?
- How do you view the system's IP address?
- How do you view the details of network interfaces?
PROJECT BASED QUESTIONS
- How would you use the ls command to display only the files in a directory (not directories)?
- Using the mkdir command, create a new directory called "my_folder" within your home directory.
- How would you move a file called "file1.txt" from your current directory to "my_folder"? Use the mv command. 4.How would you copy all files in a directory called "my_files" to a new directory called "backup_files"? Use the cp command.
- Using the rm command, delete a file called "old_file.txt" from your home directory.
- How would you create an empty file called "new_file.txt" in your current directory? Use the touch command.
- Using the echo command, write the message "Hello, world!" to a new file called "greeting.txt".
- How would you use the cat command to display the contents of a file called "notes.txt" on the terminal?
- How would you use the tail command to display the last 10 lines of a file called "log.txt"?
okay guys; that is all for day 6. You can share your answers with me. Day 7 loading
Top comments (2)
Thanks man small small we all go get there
sure
we will surely get there