Redhat RHEL System Administration Exam Solution Manual Already Passed
7 vistas 0 veces vendidas
Grado
System Administration
Institución
System Administration
Redhat RHEL System Administration Exam Solution Manual Already Passed
Cockpit - Answers a system administration tool that provides a user interface for monitoring and administering servers through a web browser.
The subscription service - Answers provides a mechanism to handle Red Hat software i...
Redhat RHEL System Administration Exam Solution Manual Already Passed
Cockpit - Answers a system administration tool that provides a user interface for monitoring and
administering servers through a web browser.
The subscription service - Answers provides a mechanism to handle Red Hat software inventory and
allows you to install additional software or update already installed programs to newer versions using
the yum package manager.
recommended way to register your system and attach subscriptions In Red Hat Enterprise Linux 7 -
Answers use Red Hat Subscription Management.
1. stdin 0 - Answers Standard input to the program.
2. stdout 1 - Answers Standard output from the program.
3. stderr 2 - Answers Standard error output from the program.
redirect std output to filename - Answers > filename or 1> filename
append std out to filename - Answers >> filename
append std out and std err to filename - Answers >> filename 2>&1 or 1>> filename 2>&1
take input from filename - Answers < filename or 0 < filename
redirect std error to filename - Answers 2> filename
redirect std out and std error to filename - Answers 1> filename 2>&1 or > filename 2>&1
This command redirects the normal output (contents of goodfile) to the file output and sends any errors
(about badfile not existing for example) to the file errors - Answers # cat goodfile badfile 1> output 2>
errors
This command redirects the input for the mail command to come from file textfile and any errors are
redirected to the file errors - Answers # mail user_id < textfile 2> errors
This command redirects the normal output to the file abc. The construct "2>&1" says "send error output
to the same place we directed normal output" - Answers # find / -name xyz -print 1> abc 2>&1
any output of the grep command is sent to the file out and any errors are sent to the file err - Answers #
( grep Bob filex > out ) 2> err
Use the useradd command to add new user - Answers # useradd [options] [username]
# useradd -D - Answers GROUP=100
HOME=/home
, INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes
For example - Answers to change the default user shell for new user to /bin/ksh :,# useradd -D -s
/bin/ksh
To simple add a user with all default options : - Answers # useradd user01
To add user with uid 1099 - Answers comment "new user" and default shell as /bin/ksh : , # useradd -u
1099 -c "new user" -s /bin/ksh user01
Check new user's entry in /etc/passwd file : - Answers grep user01 /etc/passwd
To modify existing user (e.g. changing the comment) : - Answers # usermod -c "modified user" user01
To assign the password to new user: - Answers # passwd user01
You can create a user with nologin shell for running services such as SMTP and FTP etc.
A user without a login shell can not login to a system and therefore cannot run any command on the
system interactively on the system.
Processes can run as that users however.
To add new user "test" with shell nologin : - Answers # useradd -s /sbin/nologin test
Make sure the nologin shell is present in the /etc/shells file : - Answers # cat /etc/shells
create softlink - Answers # ln -s file link
# ls -l
-rw-r--r-- 1 root root 0 Sep 19 14:41 link
lrwxrwxrwx 1 root root 5 Sep 19 15:41 link -> file - Answers The "l" in the "ls -l" command output above
indicates that the file is a soft link.
Los beneficios de comprar resúmenes en Stuvia estan en línea:
Garantiza la calidad de los comentarios
Compradores de Stuvia evaluaron más de 700.000 resúmenes. Así estas seguro que compras los mejores documentos!
Compra fácil y rápido
Puedes pagar rápidamente y en una vez con iDeal, tarjeta de crédito o con tu crédito de Stuvia. Sin tener que hacerte miembro.
Enfócate en lo más importante
Tus compañeros escriben los resúmenes. Por eso tienes la seguridad que tienes un resumen actual y confiable.
Así llegas a la conclusión rapidamente!
Preguntas frecuentes
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.
100% de satisfacción garantizada: ¿Cómo funciona?
Nuestra garantía de satisfacción le asegura que siempre encontrará un documento de estudio a tu medida. Tu rellenas un formulario y nuestro equipo de atención al cliente se encarga del resto.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TutorJosh. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for $8.49. You're not tied to anything after your purchase.