Security is Everyone's Job
Home: ~
Admin: sudo command_name
Open Terminal: nano file_name
Open File: open file_name
Change Directory: cd folder_name
Home: cd "OR" cd ~
Root Directory: cd/
Show Directory: pwd
Multi-column List: ls -C
List Entries: ls -a
List File Sizes: ls -lh
List File Size, Owner, and Flags:
List all and Hidden: ls -la
List Subdirectory and Content: du
Storage Space: df -h
Show Processes: ps -ax
Show all Processes: ps -aux
Display Running Processes: top
Kill Process with IDkill PID
Find a File: find file_name
Find a File in Directory: find folder_name -name file_name
Find text in File: grep "text_to_find" file_name
Search all Files for Text: grep -rl "text" directory_name
Read File: cat file_name
Skim File: less file_name
Read Head: head file_name
Create Folder: mkdir new_folder_name
Create Nested Folders: mkdir -p main_folder/nested_folder
Create Many Folders: mkdir folder_1 folder_2 folder_3
Delete Folder: rmdir folder_name
Delete Folder & Contents: rm -R folder_name
Create File: touch file_name
Copy File to Folder: cp file_name to_this_directory
Copy File in Folder: cp copy_file new_copy_file_name
Delete File: rm file_name
Force Delete File: rm -f file_name
Delete Many Files: rm file_1 file_2 file_3
Display Permissions: ls -ld
Display Permission Folder/File: ls -ld/folder_name
Change File Permission:chmod 755 file_name
Change Permission to Folder & Contents: chmod -R 600 folder_name
Change Ownership: chown user_name:user_group file_name
Host test: ping example.com "OR" 8.8.8.8
Who is Host: whois example.com "OR" 8.8.8.8
Download Website: curl -O example.com/download/file_name
Secure Shell: ssh username@hostname
Copy File Remotely: scp file_name username@hostname:/remote/path
Display IP & MAC on localhost: arp -a
View IP Network Info: ifconfig en0
Packet Trace: traceroute hostname