1002 A+ 3 Flashcards
What is pwd?
Print working directory.
- displays current working directory path.
- useful when changing directories often.
How to move files in Linux?
mv [source] [destination]
How to change name of file in Linux?
mv [filename] [new name]
*must be in active directory.
How to copy a file in Linux?
cp [source] [destination]
How to delete a file or directory in Linux?
rm
rm -r = removes a directory with sub-directories.
How to create directory in Linux?
mkdir [name]
What does “chmod 744 script.sh” do in Linux?
chmod changes permissions.
744 is the binary to say which permissions to set.
744 = rwx r— r—
chmod a-w first.txt
All users, no writing to first.txt
chmod u+x script.sh
The owner of script.sh can execute the file.
How to change ownership of file in Linux?
chown
Ex.
Sudo chown professor script.sh
What does
iwconfig eth0 essid studio-wireless
Do?
Changes the ssid on eth0 to “studio-wireless.”
Newer way of seeing ifconfig on Linux?
“ip address”
ps -e
Lets you view all processes on Linux.
What is “vi” in Linux?
It’s like nano, lets you edit files.
Ex.
vi [filename]
To insert text: i [text]
Exit inserting: escape
Save and quit: :wq
How does the “dd” command work?
Convert and copy a file.
- & backup and restore an entire partition.
Ex.
dd if=/dev/sda of=/tmp/sda-image.img
*to restore just reverse the source and destination.
How to terminate a process/app in Linux?
Sudo killall firefox
kill [pid]
xkill
- GUI
What is a mantrap?
Only 1 door can be opened/unlocked at a time. Never more than 1 at a time.
What is WPA2-PSK?
Wpa2 personal.
A “pre-shared key”
Everyone uses the same 256 bit key.
What is WPA2-802.1x?
Wpa2 enterprise.
Authenticates users individually with an authentication server.
- Radius, TACACS+
*can add additional factors.
What is an MDM?
Mobile device manager.
Manage company-owned and user-owned devices.