Redhat Linux 9: grep. biểu thức chính quy, regular expression, awk, cut, cat, tac, les, more



Redhat Linux 9: grep. biểu thức chính quy, regular expression, awk, cut, cat, tac, les, more

Redhat Linux 9:  grep. biểu thức chính quy, regular expression, awk, cut, cat, tac, les, more

Link playlist
Red Hat Enterprise Linux Administration
https://www.youtube.com/playlist?list=PLIpLw6v7Z1qnIUiJipjgYEHwxF16TZbCN

2023 11 01 14 25 13

. Which directory would you go to if you were looking for
configuration files?
. Which command enables you to display a list of current
directory contents, with the newest files listed first?
. Which command enables you to rename the file myfile to
yourfile?
. Which command enables you to wipe an entire directory
structure, including all of its contents?
. How do you create a link to the directory /tmp in your home
directory?
. How would you copy all files that have a name that starts with
a, b, or c from the directory /etc to your current directory?
. Which command enables you to create a link to the directory
/etc in your home directory?
. What is the safe option to remove a symbolic link to a
directory?
. How do you create a compressed archive of the directories /etc
and /home and write that archive to /tmp/etchome.tgz?
. How would you extract the file /etc/passwd from
/tmp/etchome.tgz that you have created in the previous step?
End-of-Chapter Lab
In this chapter, you learned how to perform basic file
management tasks. Managing files is an essential task for a
Linux administrator. This end-of-chapter lab enables you to
practice these skills and make sure that you master them before
taking the RHCSA exam.
Lab 3.1
1. Log in as user student and use sudo -i to open a root shell. In
the home directory of root, create one archive file that
contains the contents of the /home directory and the /etc
directory. Use the name /root/essentials.tar for the archive
file.
2. Copy this archive to the /tmp directory. Also create a hard
link to this file in the / directory.
3. Rename the file /essentials.tar to /archive.tar.
4. Create a symbolic link in the home directory of the user root
that refers to /archive.tar. Use the name link.tar for the
symbolic link.
5. Remove the file /archive.tar and see what happened to the
symbolic link. Remove the symbolic link also.
6. Compress the /root/essentials.tar file.