Search Header Logo

Explorando find, grep y chmod

Authored by ALEJANDRO MARTÍNEZ GONZALEZ

Computers

11th Grade

Used 2+ times

Explorando find, grep y chmod
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué comando usarías para cambiar los permisos de un archivo llamado 'documento.txt' para que solo el propietario tenga acceso?

chmod 777 documento.txt

chmod 600 documento.txt

chmod 0 documento.txt

chmod u+a documento.txt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si quieres buscar un archivo llamado 'informe.pdf' en tu directorio actual y en subdirectorios, ¿qué comando utilizarías?

find . -name "informe.pdf"

search informe.pdf

locate informe.pdf

grep informe.pdf

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo puedes usar grep para encontrar la palabra 'error' en un archivo de registro llamado 'log.txt'?

grep log.txt "error"

grep "error" log.txt

grep -r "error" log.txt

grep "log.txt" error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si deseas quitar privilegio de escritura al grupo en un archivo llamado 'script.sh', ¿qué comando usarías?

chmod g-w script.sh

chmod 744 script.sh

chmod g+w script.sh

chmod g=w script.sh

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué comando usarías para buscar todos los archivos con la extensión '.jpg' en el directorio ~/imágenes?

find ~/imágenes *.jpg

find ~/imágenes -name "*.jpg"

find ~/imágenes -type "*.jpg"

find ~/imágenes "*.jpg" -type f

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si quieres filtrar líneas que contienen la palabra 'exito' en un archivo llamado 'resultados.txt', ¿qué comando utilizarías?

grep "exito" resultados.txt

grep -v 'exito' resultados.txt

grep resultados.txt exito

grep [eé]xito resultados.txt

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo cambiarías los permisos de un archivo llamado 'config.json' para que todos los usuarios puedan leerlo, sin realizar otras acciones?

chmod 400 config.json

chmod 644 config.json

chmod 777 config.json

chmod 444 config.json

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?