Practice Midterm Flashcards
When using the command line on a computer, what does PWD mean in UNIX and PowerShell?
Print Working Directory
When using the command line on a computer, what command will tell me my computer’s network name ?
hostname
When using the command line on a computer, what command do you use to make a directory in UNIX and PowerShell?
mkdir
When using the command line on a computer, what command is used to changed directory in UNIX and PowerShell?
cd
When using the command line on a computer, what command is used to list a directory in UNIX and PowerShell?
ls
When using the command line on a computer, what command is used to make a directory in UNIX and PowerShell?
mkdir
When using the command line on a computer, what does the command RMDIR used for in UNIX and PowerShell?
Remove directory
When using the command line on a computer, what command is used to become super user root in UNIX and PowerShell?
runas (Windows) or sudo (UNIX)
When using the command line on a computer, what command is used to read a manual page in UNIX and PowerShell?
help (Windows) man (UNIX)
When using the command line on a computer, what command is used to print some arguments in UNIX and PowerShell?
echo
When done with the SHELL, what command do you use to exit the program?
exit
When using the command line on a computer, what command is used to make an empty text file called Test Doc in UNIX and PowerShell?
New-Item Test_Doc.txt (Windows) OR touch Test_Doc.txt (UNIX)
In python, how you code a Hello, World program?
print “Hello World!”
In python, can we write x=100 instead of x = 100?
yes, but it is bad form
In computer programming, what is the # symbol called
Octothorpe
In python, comments are proceeded with;
#
In python, the comma ( , ) is used to break lines of code that are longer than 80 characters. Do you have to use the comma?
You do not have to use a comma, but it is considered bad form
When coding in python %r is for what?
debugging