Integrating your Infrastructure Security Week 1 Flashcards
(10 cards)
Which folder contains all directories for all users except the root user?
/home
Jacob found a text file that contains content. He wants to overwrite the data in the file and replace it with something else. Which of the following commands can do that?
echo “Hello!” > file.txt
The > operator is used for redirection and it overwrites the file so the command echo “Hello!” > file.txt will overwrite the existing content.
Which of the following commands is used for file manipulation in Linux?
cp
mv
The commands cp and mv are used for file manipulation, specifically for copying and moving files.
You found a sensitive file that seems to contain passwords. When you try to read the file, you notice that there is too much data to read. How can you search for passwords in the file?
Filter with “grep.”
Which of the following commands displays the contents of a file?
cat
Which of the following commands lists all the files in a directory?
ls
Linux is an open-source operating system
True
Linux is an open-source operating system, meaning its source code is freely available to the public.
Which user has the highest permissions in the system?
root
In a Unix or Linux-based system, the “root” user has the highest level of permissions and can perform any administrative task.
Which command creates an empty file if it does not exist?
touch
Which operator can be used to run a binary in the background?
&