100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

010-160: LPI Linux Essentials Exam Study Guide with Complete Solutions

Puntuación
-
Vendido
-
Páginas
9
Grado
A+
Subido en
03-10-2024
Escrito en
2024/2025

010-160: LPI Linux Essentials Exam Study Guide with Complete Solutions whereis - Answer-used to search for programs in restricted locations, such as binary file directories, libraries, and man directories. locate - Answer-Searches the system managed database of filenames for files containing the specified string in the filenames. (Search is much faster than the search performed using the 'find' command) updatedb - Answer-Updates the system managed database of filenames Displays current working directory - Answer-pwd Change into the current user's home directory - Answer-cd ~ cd $HOME Both of these do what Change to the parent directory of the current directory - Answer-cd .. Change to the etc directory in the root (/) directory - Answer-cd /etc Creates a hard link named '' for the file '' - Answer-ln Creates a symbolic link named of - Answer-ln -s EMILLYCHARLOTTE 2024/2025 ACADEMIC YAER ©2024 EMILLYCHARLOTTE. ALL RIGHTS RESERVED FIRST PUBLISH SEPTEMBER 2024 2/9 touch - Answer-Can be used to update the timestamp of a file or if that file doesn't exist it will create a blank file with the specified name. Will update the timestamp of the specified file if it exists. If it does not exist it will not create a blank file. - Answer-touch -c Adds the content "Hey there!" to the specified file. - Answer-echo "Hey there!" cat - Answer-Displays the contents of a file Opens the vi editor for the file "sample". This will allow you to write text into a file. - Answer-vi sample Will display the "sample" file's byte count - Answer-wc -c sample Displays the number of characters in the "sample" file - Answer-wc -m sample Display the number of lines in the "sample" file - Answer-wc -l sample Display the word count of the "sample" file - Answer-wc -w sample Extracts the first field of the "/etc/passwd" file - Answer-cut -f 1 /etc/passwd Extract the first three characters from the "/etc/passwd" file - Answer-cut -c 1, 2, 3 /etc/passwd Extracts the third field from the "/etc/shadow" file and uses the : seperator. Since "/etc/shadow" is a : (colon) seperated file, this command will display only the content of the third field in the file. - Answer-cut -d ":" -f 3 /etc/shadow Search for all the rows containing the string "/home" in the "/etc/passwd" file - Answer-grep /home /etc/passwd EMILLYCHARLOTTE 2024/2025 ACADEMIC YAER ©2024 EMILLYCHARLOTTE. ALL RIGHTS RESERVED FIRST PUBLISH SEPTEMBER 2024 3/9 Display the number of lines containing the string "/bin" in the "/etc/passwd" file - Answer-grep -c /bin /etc/passwd Display the details of the root user from the /etc/shadow file - Answer-grep root /etc/shadow Search the /etc directory recursively for the string "wlan" - Answer-grep -r wlan /etc Find all the files in the /etc directory having names that start with pass - Answer- find /etc -name pass* List the files in the /etc directory with extensions conf (limit the search to one level) - Answer-find /etc -maxdepth 1 -name *.conf List all the files on system with the permission set 640 (limit the search to two levels) - Answer-find / -maxdepth 2 -perm 640 List the files in the var/cache directory owned by the root user (limit the search to two levels) - Answer-find /var/cache -maxdepth 2 -user root find /var/cache -maxdepth 2 -uid 0 List all the files in the /root directory that belong to the root group (do not

Mostrar más Leer menos
Institución
LPI Linux Essentials
Grado
LPI Linux Essentials

Vista previa del contenido

EMILLYCHARLOTTE 2024/2025 ACADEMIC YAER
©2024 EMILLYCHARLOTTE. ALL RIGHTS RESERVED
FIRST PUBLISH SEPTEMBER 2024

010-160: LPI Linux Essentials Exam
Study Guide with Complete Solutions

whereis - Answer✔✔-used to search for programs in restricted locations, such as

binary file directories, libraries, and man directories.


locate - Answer✔✔-Searches the system managed database of filenames for files

containing the specified string in the filenames. (Search is much faster than the search

performed using the 'find' command)

updatedb - Answer✔✔-Updates the system managed database of filenames

Displays current working directory - Answer✔✔-pwd

Change into the current user's home directory - Answer✔✔-cd ~



cd $HOME



Both of these do what

Change to the parent directory of the current directory - Answer✔✔-cd ..

Change to the etc directory in the root (/) directory - Answer✔✔-cd /etc

Creates a hard link named 'format.txt' for the file 'fmt.txt' - Answer✔✔-ln fmt.txt

format.txt

Creates a symbolic link named sym.txt of fmt.txt - Answer✔✔-ln -s fmt.txt sym.txt


1/9

, EMILLYCHARLOTTE 2024/2025 ACADEMIC YAER
©2024 EMILLYCHARLOTTE. ALL RIGHTS RESERVED
FIRST PUBLISH SEPTEMBER 2024
touch - Answer✔✔-Can be used to update the timestamp of a file or if that file doesn't

exist it will create a blank file with the specified name.

Will update the timestamp of the specified file if it exists. If it does not exist it will not

create a blank file. - Answer✔✔-touch -c file1.txt

Adds the content "Hey there!" to the specified file. - Answer✔✔-echo "Hey there!" >

sample.txt

cat filename.txt - Answer✔✔-Displays the contents of a file

Opens the vi editor for the file "sample". This will allow you to write text into a file. -

Answer✔✔-vi sample

Will display the "sample" file's byte count - Answer✔✔-wc -c sample

Displays the number of characters in the "sample" file - Answer✔✔-wc -m sample

Display the number of lines in the "sample" file - Answer✔✔-wc -l sample

Display the word count of the "sample" file - Answer✔✔-wc -w sample

Extracts the first field of the "/etc/passwd" file - Answer✔✔-cut -f 1 /etc/passwd

Extract the first three characters from the "/etc/passwd" file - Answer✔✔-cut -c 1, 2, 3

/etc/passwd

Extracts the third field from the "/etc/shadow" file and uses the : seperator. Since

"/etc/shadow" is a : (colon) seperated file, this command will display only the content of

the third field in the file. - Answer✔✔-cut -d ":" -f 3 /etc/shadow

Search for all the rows containing the string "/home" in the "/etc/passwd" file -

Answer✔✔-grep /home /etc/passwd
2/9

Escuela, estudio y materia

Institución
LPI Linux Essentials
Grado
LPI Linux Essentials

Información del documento

Subido en
3 de octubre de 2024
Número de páginas
9
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$11.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
EmillyCharlotte Howard Community College
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
101
Miembro desde
1 año
Número de seguidores
5
Documentos
12105
Última venta
12 horas hace
ALL-MAJOR.

On this page, you find all documents, package deals, and flashcards offered by seller Emilly Charlotte.

3.4

22 reseñas

5
7
4
6
3
2
2
3
1
4

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes