Red Hat RHSCA EXAM QUESTIONS AND ANSWERS
Access a shell prompt and issue commands with correct syntax. - Answer- Applications | System Tools | Konsole Use input-output redirection (, , |, 2, etc.). - Answer- Directs output to a file or device (overwrites if the file exists Example # cat /etc/ | grep fail Directs input from the file or device Appends output or text to a file (creates if the file doesn't exist) | Redirects the output of one command to another Use grep and regular expressions to analyze text. - Answer- cat | grep text Access remote systems using ssh and VNC. - Answer- # ssh 192.168.1.100 -l USERNAME # vncviewer 192.168.1.100 Log in and switch users in multiuser runlevels. - Answer- Switch user: # su username Switch to user to root: "# su -" or "# su root" Archive, compress, unpack, and uncompress files using tar, star, gzip, and bzip2. - Answer- Uncompress tar: # tar -xvf Unpack zipped tarball: # tar -xzvf Uncompress gzip: # gunzip Uncompress bzip2: # bunzip2 2 Uncompress star: # star -xv f=/tmp/ Create and edit text files. - Answer- # nano TEXTFILE # vi TEXTFILE Create, delete, copy, and move files and directories. - Answer- Delete file: # rm TESTFILE Copy file: # cp TESTFILE /home/testdir/ Move file # mv TESTFILE /home/testdir/TESTFILE.bak Create hard and soft links. - Answer- Soft link: # ln -s /test/target /test/softlink Hard link: # ln /test/target /test/hardlink List, set, and change standard ugo/rwx permissions. - Answer- # chmod ugo+rwx //Ads read write execute privileges to file # chmod ugo-rwx //Removes read write execute privileges to file # chmod 755 //Ads permissions based on octal format
Document information
- Uploaded on
- September 4, 2023
- Number of pages
- 10
- Written in
- 2023/2024
- Type
- Other
- Person
- Unknown