Basic Ubuntu cmds Flashcards
Study basic commands
ss
sudo
Linux command allows you to run programs or other commands with administrative privileges
ss
apt-get
used to install, update, upgrade and remove any package
ss
sudo apt-get update
update with super user privileges
ss
sudo apt-get upgrade
After updating the package database, next step is to to upgrade the installed packages
ss
sudo apt-get install
easily install a program using this command
ss
sudo apt-get remove
removing the installed program
ss
sudo apt-get purge
used when you want to remove a software completely from your system with its configuration
ss
sudo apt-get autoremove
used to remove any unnecessary packages
ss
ls
lists all files and folders in your current working directory
ss
cd
change director
ss
cd /
Takes you to the root directory
ss
cd ..
Takes you up one directory level
ss
cd �
Takes you to the previous directory
ss
pwd
print working directory
ss
cp
allows you to copy a file
ss
mv
allows you to move files
ss
rm
removes the specified file
ss
mkdir
allows you to create a new directory or file
ss
history
displays all of your previous commands up to the history limit
ss
df
displays information about the disk space usage of all mounted file systems
ss
du
displays the size of a directory and all of its subdirectories
ss
free
Displays the amount of free space available on the system
ss
top
Displays the processes using the most system resources at any given time
ss
passwd
used to change user password using Terminal
ss
Ctrl + Shift + T
Open new tab on current terminal
ss
Ctrl + Shift + W
Close the current tab
ss
Ctrl + A
Move cursor to beginning of line
ss
Ctrl + E
Move cursor to end of line
ss
Ctrl + U
Clears the entire current line
ss
Ctrl + K
Clears the command from the cursor right
ss
Ctrl + W
Delete the word before the cursor
ss
Ctrl + R
Allows you to search your history for commands matching what you have typed
ss
Ctrl + C
Kill the current process
ss
Ctrl + Z
Suspend the current process by sending the signal SIGSTOP; SIGSTOP signal instructs the operating system to stop a process
ss
Ctrl + L
Clears the terminal output
ss
Alt + F
Move forward one word
ss
Alt + B
Move backward one word
ss
Ctrl + Shift + C
Copy the highlighted command to the clipboard
ss
Ctrl + Shift + V or Shift + Insert
Paste the contents of the clipboard