file /bin/cat /etc/passwd /usr/bin/passwdģb. Display the type of file of /bin/cat, /etc/passwd and /usr/bin/passwd. List the files in the /bin directory ls /binĢ. (if you have more than one distro available, try it on all!)ġ. Use rename to rename all *.conf files to *.backup. Did you include all subdirectories of /etc ?ġ2. Create a directory ~/etcbackup and copy all *.conf files from /etc into it. Use one command to remove the directory ~/testbackup and all files into it.ġ1. Create a directory called ~/testbackup and copy all files from ~/touched into it.ġ0. Change the date on yesterday.txt to match yesterday's date.ħ. Create the files today.txt and yesterday.txt in touched.Ħ. Create a directory ~/touched and enter it.ĥ. Display the type of file of wolf.pdf and LinuxFun.pdf.Ĥ. Display the type of file of wolf.jpg and LinuxFun.pdfģc. Download wolf.jpg and LinuxFun.pdf from (wget and wget ) wget ģb. Display the type of file of /bin/cat, /etc/passwd and /usr/bin/passwd.ģa. ![]() ![]() dev/sda: x86 boot sector partition 1: ID=0x83, active, file /proc/cpuinfoĢ. It is interesting to point out file -s for special files like those in /dev and /proc. The magic file is located in /usr/share/file/magic. The file command uses a magic file that contains patterns to recognise file types. Pic33.png: PNG image data, 3840 x 1200, 8-bit/color RGBA, file /etc/passwd Here are some examples on a typical Linux system. As a system administrator, you should use the file command to determine the file type. The command line does not care whether a file ends in. ![]() Linux does not use extensions to determine the file type. The file utility determines the file type.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |