Linux2 - Quizz 5 -bash scripting

Linux2 - Quizz 5 -bash scripting

1st - 5th Grade

16 Qs

quiz-placeholder

Similar activities

Quiz sobre Cronjobs

Quiz sobre Cronjobs

1st Grade

21 Qs

MS Word

MS Word

1st Grade

13 Qs

Examen de comandos de Linux

Examen de comandos de Linux

1st Grade

13 Qs

Linux-expansionShell

Linux-expansionShell

1st - 5th Grade

12 Qs

Grade 4 - MS PowerPoint - Homework - W 22-23

Grade 4 - MS PowerPoint - Homework - W 22-23

4th Grade

20 Qs

Presentation Software

Presentation Software

5th Grade

12 Qs

MB-2

MB-2

1st Grade

17 Qs

1.2.2 - Secondary Storage

1.2.2 - Secondary Storage

KG - University

13 Qs

Linux2 - Quizz 5 -bash scripting

Linux2 - Quizz 5 -bash scripting

Assessment

Quiz

Computers

1st - 5th Grade

Medium

Created by

yuri van der List

Used 73+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How can I print the current system variables?

echo bash

echo $bash

print bash

printf bash

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How can I input data into a shell script in an neat way?

read -p "Enter your age"

read -p "Enter your age" age

read "Enter your age"

read "Enter your age" age

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

How can I check if an file is readable?

if [[ -r $file ]]; then

echo "File is not readable"

exit 0

fi

if [[ -d $file ]]; then

echo "File is not readable"

exit 0

fi

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

How to compare if 2 integers (a = 1, b = 2) are equal?

if [a -eq b]

if [a = b]

if [a isequal b]

if [ b equal a]

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How can I check if a directory exists ?

path = "/tmp/sound"

if [ -d "$path" ];

if [ -r "$path" ];

if [ -e "$path" ];

if [ -w "$path" ];

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Cron at 16:00 on day-of-month 1 in every month from January through December

00 16 1 1-12 /home/frank/BackUpAll.sh; /home/frank/ScpTarBackup.sh

00 04 1 1-12 /home/frank/BackUpAll.sh; /home/frank/ScpTarBackup.sh

16 00 1 1-12 /home/frank/BackUpAll.sh; /home/frank/ScpTarBackup.sh

16 16 1 1-12 /home/frank/BackUpAll.sh; /home/frank/ScpTarBackup.sh

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How can I edit a cronjob?

crontab -l

crontab -e

crontab

crontab -m

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?