In Bash, which of the following commands can you use to view the contents of a document. Check all that apply.

C3 W2-3

Quiz
•
Professional Development
•
1st - 12th Grade
•
Hard
Guntis Coders
Used 4+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
open
cat
less
Dog
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In a Linux machine, you have the following files:
apple.txt banana.jpg chocolate.txt orange.txt
What command can you use to search for the word "fruit" in the text files in the above directory? Check all that apply.
grep fruit apple.txt chocolate.txt orange.txt
grep fruit *.txt
find fruit apple.txt chocolate.txt
find fruit apple.txt chocolate.txt orange.txt
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In a Linux machine, you want to list through a directory called /home/ben/Documents and search for the word "important" in the filenames in that directory. Which of the following commands can you use?
ls /home/ben/Documents | grep important
ls /home/ben/Documents >> grep important
ls /home/ben/Documents < grep important
ls /home/ben/Documents > grep important
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In a Linux machine, you have a file named "types_of_fish.txt" and you want to append the word "trout" to the file contents. Which of the following commands can you use?
echo trout < types_of_fish.txt
echo trout > types_of_fish.txt
echo trout >> types_of_fish.txt
echo trout 2> types_of_fish.txt
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What are the basic linux file permissions? Check all that apply.
Read
Write
Modify
Execute
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
You're given the output of an ls -l of a file in Linux.
ls -l books_file
dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file
Answer the following question: What does the first character of output signify
The file owner is a class D user
books_file is a disk device
The file owner has delete permissions
books_file is a directory
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which special permission bit is used to allow a file to be run as the owner of the file?
SetUID
SetGID
Sticky bit
Super bit
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Aula 03 - LInux

Quiz
•
1st Grade
11 questions
LS Orientation

Quiz
•
1st Grade
10 questions
SK ZIC Quiz

Quiz
•
2nd Grade
15 questions
python alapok

Quiz
•
10th Grade
10 questions
Questionário formativo - SI - Mód 2

Quiz
•
10th - 12th Grade
10 questions
GDĐP 12

Quiz
•
9th - 12th Grade
10 questions
Google Docs Basics

Quiz
•
7th Grade - University
10 questions
Google Slides

Quiz
•
7th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Professional Development
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade