In Bash what is an alias - ANSWERSUser defined command:
[alias newcmd=oldcmd
what is an internal command - ANSWERSRuns as part of the shell itself
what is an external command - ANSWERSExists as an executable file on the computer
what is the $Path - ANSWERSDefines a list of directories tha...
RHCSA EX200 Questions & Answers
In Bash what is an alias - ANSWERSUser defined command:
[alias newcmd=oldcmd
what is an internal command - ANSWERSRuns as part of the shell itself
what is an external command - ANSWERSExists as an executable file on the computer
what is the $Path - ANSWERSDefines a list of directories that search for a filename
when a user enters a command
Explain the following file descriptors
>
>>
2>
2>&1
< - ANSWERS> - Redirects stout - creates files or overwrites
>> - Redirects stout - creates or appends to file
2> - Redirect sterr
2>&1 - Redirects sterr to stout
< - Redirects stdin
what is ~.bash_history - ANSWERSFiles that shows bash history commands
Explain the following environment configuration files
/etc/profile
/etc/bashrc
~/.bash_profile
~/.bashrc - ANSWERS/etc/profile - generic file processed by all users upon login
/etc/bashrc - This file is processed when subshells are started
~/.bash_profile - User specific variables that can be defined
~/.bashrc - User specific subvariables that can be defined
Explain the file system heirarchy
/
/bin
/boot
/dev
/etc
/home
/lib, /lib64
/media, /mnt
/proc
, /opt
/root
/run
/sbin
/srv
/sys
/tmp
/usr
/var - ANSWERS/ - root directory, where the file system tree starts
/bin - Find executable programs that are needed to repair a system. Directory is
essential during boot
/boot - Contains all files/dirs that are needed to boot
/dev - Device files that are used for physical device access
/etc - Contains configuration files
/home - local home user directories
/lib, /lib64 - shared libraries used by /boot,/bin,/sbin
/media, /mnt - Directories used for mounting devices
/proc - Gives access to kernel information
/opt - used for optional packages
/root - root home directory
/run - processes since last boot. empties when powered off
/sbin - similar to bin. used by adminstrators
/sys - used as an interface to different hardware devices that are managed by the kernel
/srv - used for data that may be used for services such as NFS,FTP,HTTP
/tmp - contains temp files
/usr - contain subdirectories for program files, libraries for program files, and
documentation about them
/var - contains files that may change in size dynamically such as log files, spool files and
mail boxes
What are hard links? - ANSWERSInodes, access a files from a different location [ln
(source) (destination)]
what are soft links - ANSWERSallows you to access a file by filename and not inode [ln
-s (source) (destination)]
1. what is the tar utility?
2. how would you create an archive?
3. how would you extract an archive?
4. how would you extract one file from an archive? - ANSWERS1. Utility used to create
archives
2. tar -cf [archivename.tar]
3. tar -xvf [archivename.tar]
4. tar-xvf [archivename.tar] [filename]
what is the console - ANSWERSThe environment the use is looking at
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Brilliantscores1. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.99. You're not tied to anything after your purchase.