Basic Linux Commands Flashcards
Used for searching “text” in files
grep
Changes the current directory
cd
Changes file permissions
chmod
Changes the file owner and group
chown
Copies files
cp
Displays the contents of a directory
ls
Creates a directory
mkdir
Renames a file and moves the file from one directory to another
mv
Delete files
rm
Displays the current directory
pwd
Copies blocks of data from one file to another. Used to copy data from devices
dd
Searches for regular expressions in a text file
grep
Download files from a repository site
apt-get
Shuts down Linux
shutdown
Starts the visual file editor, which can be used to edit files
vi
Changes the password
passwd
Starts a new shell as another user
su (root directory if not used with any other argument)
Runs a command as another user (usually the root user)
sudu
Allows you to display and configure info related to the network interface card (NIC)
ifconfig
Same as ifconfig, except used for wireless
iwconfig
Quit command
q
Displays a list of the current running processes
ps
Terminates a process
kill
Command to change to root (superuser) in order to administer a system
su -