Linux commands

whoami - checks name of current user

hostname- name of host

clear- clears terminal

date - shows current date

time - shows current time

pwd - see present working directory

history - shows recently inputted command

ls - shows all directories in linux device. Blue names are directory names, White are file names

ls -a - shows ALL Files and directories in linux device, including hidden ones

ls [DIRECTORY] - shows files in a specific directory

ls -l - Gives detailed info for each file, the number before the date provided shows how many bytes it has. -h for kilobytes

cd [DIRECTORY] - Changes directory

cd .. - goes back a directory

cd - - goes back to the previous working directory

nano - creates and modify text documents

cat [FILE NAME.txt] - view text documents. -n gives line numbers
to display multiple files together:

in order to override files using cat:

to append text using cat

to copy files

mkdir [NEW DIRECTORY NAME]- Makes a new directory, you can make multiple directories by separating the names with space

to make a directory with a sub directory:
-mkdir -p [PARENT DIRECTORY]/[SUB DIRECTORY]

grep --help - helps to find patterns in files??

grep 'string' [FILE NAME.TXT] - searches for a word in a text files

wc [FILE NAME.TXT] - prints number of characters, lines, and words (to isolate, wc -c, wc -l, & wc -w)

to show the number of user accounts?:
wc -l < /etc/passwd