3 RD
3 RD
2. Create a new directory called "f_directory" within Documents directory. Then, copy to this
directory all files from previous task (al least 3commands). Rename this files by adding “f” at the
beginning (fALIBEK.txt, falibekov2201354.txt, fSE.jpg) (at least 3commands). Also create more
files: f1.txt, f2.txt, f22.txt, fa.jpg. (+4commands) Use the certain command to verify that the
directory and files were created. Show files with txt extension. Show files which has in name
f<symbol>.txt pattern, f<digit>.txt pattern, f<letter>.txt pattern, f<digit><digit>.txt pattern. (at
least 17 commands in total task)
3. Use the command to create a compressed tar archive of the "archive_directory" called
"my_ID.tar.gz". Finally, use the certain command to verify that the archive file was created.
4. Navigate to the root directory. Then, navigate to the "/var/log" directory and use the certain
command to display the contents of the "syslog" file. Finally, navigate back to your home
directory. Show path.
5. Create a new directory(random name) in "f_directory2" within your home directory. Then,
create three new files within this directory called "file1.txt", "file2.txt", and "file3.txt", using
touch command once. Copy all files to f_directory using copy command only once. Go out of
f_directory2 and delete all files from f_directory2, check. Now do the copy the f_directory and
make it invisible. Check. Use the certain command to change the permissions of "file1.txt" to
read-only for the owner, read and write for the group, and read-only for others. Finally, use the
certain command to remove "file2.txt". Check settings of files.