Write the command of the following questions: 1- create 4 files (file1 - file2 - file3 -…
- User
Write the command of the following questions: 1- create 4 files (file1 - file2 - file3 - file4) in Documents Directory 2- To organize these files, create two subdirectories named season1 and season2 under the Documents directory. 3- Move (file1 and file2) into the season1 subdirectories, (file3 and file4) into the season2 subdirectories. Use only two commands, Specifying destinations using relative syntax. 4- Write error command and output command and then redirect it in err.txt, out.txt respectively. 5- Change the user ID (0011) for a user, primary group id (0111) , secondary group(1&2)(Addvising,IT) , GECOS (address of the user) , and password aging the password will expired after next month. 6- Where the full account information is stored. 7- Where the password information of accounts is stored. 8- Append output to an existing file: by using command of print anything into a file1.txt. 9- Make an error by typing syntax error command and append it into the error.txt. Guidelines: You must use your user account don’t use root account. The assignment should be implemented using VM &fedora. This is an INDIVIDUAL assignment. Cheating cases will lead to a ZERO. Deadline: Next week on Tuesday 5/12/2023.
- Assistant
1- touch ~/Documents/file1 ~/Documents/file2 ~/Documents/file3 ~/Documents/file4 2- mkdir ~/Documents/season1 ~/Documents/season2 3- mv ~/Documents/file1 ~/Documents/season1/ mv ~/Documents/file2 ~/Documents/season1/ mv ~/Documents/file3 ~/Documents/season2/ mv ~/Documents/file4 ~/Documents/season2/ 4- err_command > err.txt out_command > out.txt 5- usermod -u 0011 -g 0111 -G Addvising,IT -c "address of the user" -e
date -d "+1 month" +%Y-%m-%dusername 6- The full account information is stored in the /etc/passwd file. 7- The password information of accounts is stored in the /etc/shadow file. 8- echo "anything" >> file1.txt 9- invalid_command 2>> error.txt - User
Write the command of the following questions: 1- create 4 files (file1 - file2 - file3 - file4) in Documents Directory 2- To organize these files, create two subdirectories named season1 and season2 under the Documents directory. 3- Move (file1 and file2) into the season1 subdirectories, (file3 and file4) into the season2 subdirectories. Use only two commands, Specifying destinations using relative syntax. 4- Write error command and output command and then redirect it in err.txt, out.txt respectively. 5- Change the user ID (0011) for a user, primary group id (0111) , secondary group(1&2)(Addvising,IT) , GECOS (address of the user) , and password aging the password will expired after next month. 6- Where the full account information is stored. 7- Where the password information of accounts is stored. 8- Append output to an existing file: by using command of print anything into a file1.txt. 9- Make an error by typing syntax error command and append it into the error.txt. Guidelines: You must use your user account don’t use root account. The assignment should be implemented using VM &fedora. This is an INDIVIDUAL assignment. Cheating cases will lead to a ZERO. Deadline: Next week on Tuesday 5/12/2023. using fedora
- Assistant
1- touch ~/Documents/file1 ~/Documents/file2 ~/Documents/file3 ~/Documents/file4 2- mkdir ~/Documents/season1 ~/Documents/season2 3- mv ~/Documents/file1 ~/Documents/season1/ mv ~/Documents/file2 ~/Documents/season1/ mv ~/Documents/file3 ~/Documents/season2/ mv ~/Documents/file4 ~/Documents/season2/ 4- error_command > err.txt output_command > out.txt 5- usermod -u 0011 -g 0111 -G Addvising,IT -c "address of the user" -e $(date -d '+1 month' +%Y-%m-%d) username 6- The full account information is stored in the /etc/passwd file. 7- The password information of accounts is stored in the /etc/shadow file. 8- echo "anything" >> file1.txt 9- syntax_error_command 2>> error.txt