Commands Flashcards
Pwd
Print working directory.
Cd
Change directory.
Chmod
Changes the permissions on a file.
Chown
Change owner of file.
Su
Switch user
Sudo
Super user do
Cp
Copy
Mv
Either move a file from one directory to another or rename a file in the same directory.
Rm
Remove/delete file
Df
Disk free: allows you to view the free disk space
du
Disk usage: allows you to see how a device is used, including the size of directory.
Grep
Globally search a regular expression and print: allows you to search for a match and print the result to the terminal.
Find
Allows you to search for files
ls
List the contents of the directory.
Cat
Prints the contents of the file.
Cat -n
Prints the contents of the file adds line numbers.
(pipe)
Send the results into this.
ps
Invokes the process table, all processes running on the system.
top
Same as ps but allows you to sort and terminate processes interactively.
Ifconfig
Legacy ipconfig
ip addr
Same reporting as ifconfig
dig
Used to gather information and testing name resolution.
Samba
Enables the integration of Linux and windows systems.
cron
Allows you to schedule a job.
Nano
Open text based editor
Apt-get
Download files from repository
yum
Download files from repository
shutdown
Shut down Linux
Vi
Starts visual file editor
Man
System help for executable files
passwd
Changes passwords
iwconfig
Like if config but wireless
q
Quit