1.9 Flashcards
A macOS user wants to revert his OS back to a week ago. Which application would allow him to do this?
Time Machine
In regards to the macOS, which application would you use for disk maintenance?
Disk Utility
When using a Mac, where would you go if you wanted to check for any application updates?
App Store -> Updates
When using a Mac, where would you go for patch management?
App Store -> Updates
A macOS user wants to view his driver/firmware information? Where would he go?
System Information -> Hardware
True or False: Driver/Firmware information is read-only.
True.
True or False: macOS does not include anti-virus or anti-malware.
True.
What macOS tool would you use if you wanted to build a disk image?
Disk Utility
What tool would you use if you wanted to verify and repair file systems?
Disk Utility
What is the command line in macOS known as?
Terminal
How does screen sharing work with macOS?
It’s built-in, so all you have to do is go to the Finder, find the computer on the network you want to share with, right-click, then check the screen sharing box.
What macOS tool is used when you want to view everything that is running on your desktop?
Mission Control
What macOS feature allows you to create multiple desktops?
Spaces
What is the macOS centralized password management utility called?
Keychain
What is the macOS utility that allows you to search for anything on your OS?
Spotlight
What is the macOS utility that allows you to integrate all Apple technology?
iCloud
What is the macOS utility that allows you to use multiple fingers in different ways to control what happens with your OS?
Gestures
What is the central OS file manager for macOS?
Finder
What is the macOS utility that allows you to use an optical drive from another computer?
Remote Disc
True or False: Remote Disc does support audio CDs and video DVDs.
False
What is the bottom part of a macOS screen that contains numerous available applications?
Dock
What is the macOS utility that allows you to dual-boot into Windows on Mac hardware?
Boot Camp
In Linux, what command would you run in order to access your directory?
ls
What does the ls command do in Linux?
Lists your files and directories
What would you type in Linux if you wanted to see more detail about file ownership and permissions?
ls -l | more
el es dash el pipe more
What does the | do in “| more”?
Lists your command results in pages rather than all in one page which allows faster scrolling through the terminal.
How do you exit a page in the terminal to bring you back to the command line?
q or Ctrl-c
What would you type in the Linux terminal if you wanted to change directories?
cd
What does the cd command do in Linux?
Change directories
True or False: Linux uses backward slashes instead of forward slashes in the terminal.
False; Linux uses forward slashes instead of backward
If you wanted to change to the “/var/log” director using cd, how would you type it?
cd /var/log
What would you type in the Linux terminal if you wanted to search one or many files for a certain word?
grep
What does the grep command do?
Allows you to search one or many files for a certain word.
If you wanted to search for the word “failed’ in your “auth.log” file, what command would you use and how would you type it.
grep failed auth.log
What would you type in the Linux terminal if you needed elevated rights to execute just one command?
sudo
What does the “sudo” command do?
Gives you elevated rights for one command.
What would you type in the Linux terminal if you needed elevated rights for the entire session?
su
What does the “su” command do?
Gives you elevated rights for the entire session.
What would you type in the Linux terminal if you want to shutdown your system?
shutdown
What would you type if you wanted to shutdown your system in two minutes?
su/sudo shutdown 2
What would you type if you wanted to shutdown and then restart your system in two minutes?
su/sudo shutdown -r 2
What would you type if you wanted to cancel a shutdown command?
Ctrl-c or shutdown -c
What would you type in the Linux terminal if you wanted to display the current working directory path?
pwd (print working directory)
What does the “pwd” command do?
Displays the current working directory path
What would you type in the Linux terminal if you wanted to change a user account password?
passwd
What does the “passwd” command do?
Allow you to change a user’s password
What would you type in the Linux terminal if you wanted to move a file?
mv
What does the “mv” command do?
Moves a file or Renames a file
If you wanted to change file name called “first.txt” to “second.txt”, what would you type?
mv first.txt second.txt
What would you type in the Linux terminal if you wanted to copy a file?
cp
What does the “cp” command do?
copies a file
If you wanted to copy a file name called “first.txt” and name the copy “second.txt”, what would you type?
cp first.txt second.txt
What would you type in the Linux terminal if wanted to remove files or directories?
rm
What does the “rm” command do?
Removes files and/or directories
True or False: You can remove a directory even if it isn’t empty.
False, it must be empty
What would you type in the Linux terminal if you wanted to make a directory?
mkdir
What does the mkdir command do?
Makes a directory
What would you type in the Linux terminal if you wanted to change the mode of a file system object to either read, write, or execute?
chmod
What does chmod do?
Changes the mode of a file system object
What would you type if you wanted to change the mode of the “script.sh” file where the user has read, write, and execute permissions, the group has read only permission, and others have read and write permissions?
chmod 746 script.sh
What chmod number is associated with execute only permissions?
1
What chmod number is associated with read only permissions?
4
What chmod number is associated with read, write, and execute permissions?
7
What chmod number is associated with write and execute permissions?
3
What chmod number is associated with read and write permissions?
6
What chmod number is associated with write only permissions?
2
What chmod number is associated with read and execute permissions?
5
What would you type in the Linux terminal if you wanted to change who owns a specific file?
chown
What does the chown command do?
Changes the owner of a file
If you would like to change the owner of file script.sh to user “Cameron”, what would you type?
sudo chown Cameron script.sh
What would you type in the Linux terminal if you wanted to view or modify any of your wireless configuration settings?
iwconfig
What does the “iwconfig” command do?
Lets you view or modify any of your wireless configuration settings
What would you type in the Linux terminal if you wanted to view or configure a wired network interface and IP configuration?
ifconfig
What does the “ifconfig” command do?
Let’s you view or configure a wired network interface and IP configuration
What would you type in the Linux terminal if realize that your Linux distribution doesn’t have the command you are looking for and you’d like to install a version that does?
apt-get
What does the “apt-get” command do?
Allows you to install and remove applications from your Linux distribution
What would you type in the Linux terminal if you wanted to view the current processes?
ps
What does the ps command do?
Let’s you view the current processes.
What would you type in the Linux terminal if you wanted to view all of the processes?
ps -e | more
What would you type in the Linux terminal if you wanted to enter full screen editing mode?
vi
What does the “vi” command do?
Let’s you enter into full screen editing mode
What would you type in the Linux terminal if you wanted to covert and copy a file and/or back and restore an entire partition?
dd
What does the “dd” command do?
Let’s you covert and copy a file and/or back and restore an entire partition
What would you type if you wanted to create a disk image where the source file name is “/dev/sda”, the target file name is “/tmp/sda-image.img”?
dd if=/dev/sda of=/tmp/sda-image.img
What would you type if you wanted to restore from an image where the source file name is “/dev/sda” and the taret file name is “/tmp/sda-image.img”?
dd if=/tmp/sda-image.img of=/dev/sda
What would you type if you wanted to close a program?
killall
What would you type if you wanted to kill a program via. its PID?
xkill pidnumber