Ubuntu Terminal Commands
By PedroG.
The Terminal is the Ubuntu OS command line software which is the traditional interface for unix environments and has the advantage of being faster and more powerful for the pretended end despite having a slower learning curve.
All the Linux derivated operative systems use some kind of command line but being or not the same that Ubuntu uses, the syntax uses to be very simmilar or equal.
Most Important/Used
sudo - this will give the higher privileges for certain things you will need to do like installing software. Usage:
- sudo(command)
- sudo -i (for enabling the root account and thus saving you from using sudo before each command)
File Handling
pwd - shows your current directory
cp - copy a file. Example:
- "cp file file2" copy file as file2 for same directory
- "cp -r directory dir2" to copy directory as dir2 for same directory
mv - move or rename file
- "mv file file1" to rename file as file1
- "mv file1 ~/Desktop" to move file1 to desktop
ls - printes all the files in the current directory
cd - change of directory. Usage:
cd (full path) - This will be the most common use for the command, example:
- "cd /var/www"
mkdir - create directory in current one. use mkdir (name)
Installing Software
Many software available to Ubuntu can be installed or removed through a very simple command.
- "sudo apt-get install ABC"
- "sudo apt-get remove ABC"
ABC being the name of the software, which uses to be referred on the website
Drive Managment
- mount - a drive
- unmount - a drive
- fdist - format dist
- dd - duplicate disk
- df - disk free space
Another useful command is the Kill command - it allows you to send a signal for certain process or group of processes to end it.