Linux intro - BenWare-FED/Notes-for-df-analysis GitHub Wiki

File system

root = /

/etc/ = host specific system config

/home/ = user home directories same as users in windows

/mnt/ = mount point for a temporarily mounted filesystem

/tep/ = temporary directory

/usr/ = multiuser utilities and applications

/root/ = home directory for root user(do not sign in to root)

Basic commands

man(any command): gives a manual for the command

ls: list the contents of the current directory

cd: change directory ex: cd /usr cd - moves you back a directory

mkdir: makes a new directory

pwd: shows current directory

rmdir: removes a directory

rm: deletes files

cp: copy files from source to destination

touch: create new, empty files and can be used to update timestamps on existing files

cat: concatenate, used to concatenate and display text files.

tar: creating, listing and retrieving from archive files

chmod: used to change the permission of the file that you own

chown: change ownership of the file/folder chown : <filename.txt>

ping: check connectivity, you need to stop it or it will run forever

whois: find the owner of a domain

ip: view the configuration of your device

ps: view processes that are running

top: view cpu usage of processes

>: used to indicate direction >> appends files

|: used it push the output of one command as the input of another

⚠️ **GitHub.com Fallback** ⚠️