Intro 5 Flashcards
What is the syntax for running a command in the background?
gunzip file.gz &
What problems can arrise from sending a process to the background?
They may expect to work with the standard input or read directly from the terminal, or they might write something to standard output or standard error, which will appear in the terminal window.
What is the best way to avoid errors when sending a process to the background?
Redirect its output and input using > and
Command for redrawing the terminal screen.
Ctrl-L
What are the four modes and permissions listed in a normal ls -l view of files and folders?
Type
User Permissions
Group Permissions
Other Permissoins
What does a single dash in the file type position indicate?
It is a regular file.
What does a d in the file type position indicate.
It is a directory.
r
readable
w
writable
x
executable
-
nothing
How do you see what groups you are in?
the groups command
The third set of permissions, the other permissions, are sometimes called ________.
world permissions
Each read, write, and execute permission slot is sometimes called a _______. Therefore, you might hear people refer to parts of the permissions as “the _______.”
permission bit
read bits
What does it mean if an executable file has an s in the permissions slot instead of an x?
This inidcates that the executable is setuid, meaning that when you execute the program, it runs as though the file owner is the user instead of you.