©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM
RHCSA EXAM STUDY GUIDE WITH
COMPLETE SOLUTIONS
Change your password - Answer✔️✔️-$ passwd
Display time and date - Answer✔️✔️-$ date
Display the current time in the following format: HH:MM:SS A/PM -
Answer✔️✔️-$ date +%r
Use $ date --help or $ man date
to get the format options
Determine the file type - Answer✔️✔️-$ file FILE
Reuse the argument from the previous command - Answer✔️✔️-$ command
<Esc> .
display the size of a file - Answer✔️✔️-$ wc FILE
Display the number of lines in FILE - Answer✔️✔️-$ wc -l FILE
Display the number of words in FILE - Answer✔️✔️-$ wc -w FILE
Display the number of characters in FILE - Answer✔️✔️-$ wc -c FILE
Display the first 10 lines of FILE - Answer✔️✔️-$ head FILE
Display the last 10 lines of FILE - Answer✔️✔️-$ tail FILE
Display the last 20 lines of FILE - Answer✔️✔️-$ tail -n 20 FILE
1
RHCSA EXAM STUDY GUIDE WITH
COMPLETE SOLUTIONS
Change your password - Answer✔️✔️-$ passwd
Display time and date - Answer✔️✔️-$ date
Display the current time in the following format: HH:MM:SS A/PM -
Answer✔️✔️-$ date +%r
Use $ date --help or $ man date
to get the format options
Determine the file type - Answer✔️✔️-$ file FILE
Reuse the argument from the previous command - Answer✔️✔️-$ command
<Esc> .
display the size of a file - Answer✔️✔️-$ wc FILE
Display the number of lines in FILE - Answer✔️✔️-$ wc -l FILE
Display the number of words in FILE - Answer✔️✔️-$ wc -w FILE
Display the number of characters in FILE - Answer✔️✔️-$ wc -c FILE
Display the first 10 lines of FILE - Answer✔️✔️-$ head FILE
Display the last 10 lines of FILE - Answer✔️✔️-$ tail FILE
Display the last 20 lines of FILE - Answer✔️✔️-$ tail -n 20 FILE
1