
Linux2 - Quizz 5 -bash scripting

Quiz
•
Computers
•
1st - 5th Grade
•
Medium

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
Similar Resources on Wayground
18 questions
Brawl stars

Quiz
•
3rd Grade
11 questions
Super heros!!!!

Quiz
•
KG - University
16 questions
PowerPoint

Quiz
•
3rd - 4th Grade
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
15 questions
Windows i Linux

Quiz
•
1st - 5th Grade
15 questions
Ulangan Harian Kelas 5

Quiz
•
5th Grade
18 questions
Podstawowe informacje o systemie Linux Ubuntu

Quiz
•
1st - 5th Grade
15 questions
QUIZ ANBK 2023

Quiz
•
1st Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
9 questions
A Fine, Fine School Comprehension

Quiz
•
3rd Grade
10 questions
Common Denominators

Quiz
•
5th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
12 questions
Passport Quiz 1

Quiz
•
1st - 5th Grade
10 questions
Making Predictions

Quiz
•
4th - 5th Grade
6 questions
Spiral Review 8/5

Quiz
•
4th Grade