1/40
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
SSH stands for
Secure shell
Which of the following are true?
a. Linux Torvalds is solely responsible for Linux.
b. There are many LINUX distributions.
c. LINUX is a derivative of UNIX
d. There have been many variants of UNIX
b, c, d
CLI stands for
Command Line Interface
man ls will show you the manual page for ls command. ls has many options. Which one is used to reverse the default ordering of the listings?
-r
Which option can be used to recursively search subdirectories
-R
Cat is short for
Concatenate
enter man tail.
Enter command that will output the last line of the file myfile.csv
tail -n 1 myfile.csv
grep command
... used to search for a string inside of a file and print the lines in which it appears like this:
grep thestring thefile
Touch command has 2 main uses
Change timestamp on a file and create an empty file with a given name.
To create empty file named nonsense : touch nonsense
mkdir command
Creates a directory
Under command to create a directory, called top, a subdirectories of top, called middle, and a subdirectories of middle called the bottom
mkdir top
cd top
mkdir middle
cd middle
mkdir bottom
Make subdirectories of top called nope and yep. Make an empty file in nope, called reasons .txt. Make an empty file in yep called unreasons.csv
mkdir top/nope top/yep
touch top/nope/reasons.txt
touch top/yep/unreasons.txt
sd1 is a subdirectory of the current directory and has a file called thefile. Move the file to another (already existing subdirectory) of the current directory called sd2 (keeping same file name)
mv sd1/thefile sd2/
T/F: option arguments, and regular arguments to bash commands, are sometimes optional
T
How many option arguments does the below command have? -l -a -f/etc /bin
3
Enter command that will cause "Bonjour, monde!" to appear in the terminal
echo "Bonjour, monde!"
What command could you use to list the files in the current working directory
ls
Which are correct regarding UNIX file names?
a. File names are Case sensitive. (File and file are diff)
b. Spaces are allowed in file names, but make it hard to work with.
c. There can be files with the same name in two different directories.
d. File names must start with the letter.
e. "/root" Is the top directory in the UNIX file system
abc
("/" is the root directory)
When a directory is removed by the command: rm -rf directoryname , what do the options r and f stand for?
Recursively
Forcefully
Enter commands to make a directory called "bus" in the parent directory of your current directory and create a file called "driver" under "bus"
mkdir ../bus
cd ../bus
touch driver
Enter commands to make a directory called "bus" in your current directory and copy an already-existing file "driver" into "bus"
mkdir bus
cp driver bus/
Enter a bash command to run
ping go.cis.udel.edu
in the background so that other commands can still be entered
ping go.cis.udel.edu &
Enter commands to make a directory called "lantern" in your current directory and a directory called "oil" under that. Change the current working directory to "oil"
mkdir lantern
cd lantern
mkdir oil
cd oil
Which Grep command is used for invert the sense of matching to select non-matching lines?
-v
What will append the output of the cal command to the file out.txt (without trunking or deleting the contents of out.txt)?
cal >> out.txt
(command >> filetoappend)
What file is created by compiling with gcc?
a.out
What command creates a new local copy of an existing repository
git clone
After you've worked on a project for a while, you should
Commit then push
Parent id of a process is..
The number that uniquely identifies the process that started the process in question
Single line comment vs multi
//
/ /
Order of git pushing
Git pull, git add, git commit, git push
printf format
Character array/str- %s
Literal percent character- %%
Double/float- %f
Char- %c
Int- %d
A variable has been declared and initialized: int x=9;
How would you assign the ADDRESS of the memory location at which 9 is stored to a previously declared p2x?
p2x=&x;
Designate a place for the program to pause execution
Break(b)
Indicate a variable or memory location that will cause the program to pause when the value is changed
watch (w)
Execute the program currently being debugged
Run (r)
Execute the current line, including completing any function calls and stop on the next line
Next (n)
Execute the current line, and stop on the next line to be executed, even if the next line is inside of a function call
Step (s)
What compiles a source code file called hello.c into an executable called greeting?
cc -o greeting hello.c
What would be true in an if statement
"no", 2.2, 0, -1, 0.0, 1
"No"
2.2
-1
1
Make file is most like
A recipe book