Linux Fundamentals 1
Linux Fundamentals 1
Questions
1. Basic Commands
o What command would you use to list all files and directories in the current
directory?
o How do you change the current working directory to /home/user?
o Which command is used to display the current directory path?
2. File Permissions
o How would you change the permissions of a file named example.txt to be
readable and writable by the owner, and readable by others?
o What does the permission rwxr-xr-- mean for a file?
3. Text Editors
o How do you open a file named notes.txt in nano?
o What is the command to save changes and exit in vim?
4. Directory Structure
o What is the purpose of the /etc directory in Linux?
o Where would you typically find user-specific configuration files?
5. Package Management
o How do you update the package list on a Debian-based system using apt?
o What command would you use to install a package named wget on a Red Hat-
based system?
Workshop Activities
1. Navigating the File System
o Use the terminal to navigate to the /var/log directory and list all files that
end with .log.
o Create a new directory called backup in your home directory and move a file
named data.txt into it.
2. Modifying File Permissions
o Create a file named script.sh and modify its permissions to make it
executable by the owner only.
o Change the owner of a file named report.doc to a user named admin.
3. Using Text Editors
o Open a file named config.cfg in nano, add a line of text, and save the file.
o Edit a file named index.html in vim, replace all occurrences of the word
"Hello" with "Hi", and save your changes.
4. Managing Packages
o Use apt to search for a package related to curl and install it.
o Remove a package named example-software using yum.