06-29-2010, 11:43 AM
Using The Linux Terminal
Hello and welcome to my first tutorial on using the linux terminal. This tutorial will just say something about using the terminal and other basic information. So let us begin!
Getting Started
First off lets open up the terminal, if you dont know where it is it is at
Applications>Accessories>Terminal
Now that it is open you will see something that has your Username@ComputerName:~!
First part is the Username, and the second part is the name of the computer.
After that you see this " ~ " this key stands for Home. As in the Home directory.
Then the final symbol you see is " $ " this stands for what permission you have. Its means your not a root user.
You can temporarily recieve root permissions by typing
Quote:sudo bashInto the terminal and hitting enter.
Your not automatically made root user because its Ubuntu's way of keeping you safe.
Now onto commands!
Ok here are some commands that you can use, i also added a definition to each.
Quote:Sudo apt-get updateUpdates the repositiroies
Quote:Sudo apt-get install (Insert Program Name)Will Install the package, like Compiz Fusion (thats not the name to use tho)
It installs the files from the repositories
Quote:Sudo apt-get upgradeWill upgrade your computer
Quote:Sudo apt-get remove (Program Name)This will remove a program
Quote:lsWill list all files/folders in the current directory. Like if you ls in the home directory it will come up with.
Quote:pwdShows current directory
Quote:Cd (path)This moves the terminal to the specified directory.
Starts here-
Moves here-
Quote:Cd ..Moves you up one directory
Quote:Cp (file) (directory)This just copies a file into a directory. Like cp love.txt Pictures That would copy the file love.txt into the directory Pictures.
Quote:mvMoves things
Quote:duDisplays File space usage
Quote:freeDisplays memory usage
Quote:historyDisplays Command History
Quote:killStop process from running
Quote:locateFind files
Quote:mkdirCreates a directory
Quote:rmRemove file
Quote:rmdirRemove directory
That is all for now =D