![]() Home RECENT BLOGS![]() |
![]() Command Line
I was fortunate enough to have taken a class in college for Linux some 5 years ago. Therefore I learned the commands for the command line. Ok so why even bring this up? Well I realize that many people start off with Ubuntu, or any other Linux distro, and they have no idea what to do with the command line. A lot of times they walk through blindly and have no idea what these commands mean. I will now compile a list of very needed commands that you will need to know for your own use at home. The Majority of these commands will Work for all Linux distros. One of them is for Ubuntu only. So here is a list of a few really important commands you should know. SUDO command: With this command I can download and install gaim (GAIM is a messenger program similar to AIM) through the terminal. This command is something you will use almost constantly. CD command: As you can see here, with the command, I switched to my Desktop directory. Here I can do any work on my Desktop that I wish through the command line. Let's say I have a folder on my desktop named Pictures. I can now type: From here I can go in and do whatever I wish with my Pictures directory. If I want to go back to my Desktop for anything all I have to type is: This will just take me right back to my Desktop. Or let's say I'm still in my Pictures folder and I want to go back to my home directory all I have to type is: This takes me right back to the home directory. Let's say I want to go to a directory in some far off place without going systematically like first going to Desktop and then Pictures. It is simple all you need is this: Here you can see you are in your Pictures directory. LS command: All you have to type is that and it will show what you have. So if you are in your home directory (which is where you start when you first open your terminal or go into your shell) type ls. You'll see that you have plenty of things to look at. Including that Desktop directory spoken about before. This is how you know where to go if you are just following a path of directories that are within each other. CP command: With this line of command I have copied and pasted 1.jpg to my Pictures folder on my Desktop. The easiest way to use the command is to be in the directory that your file is in. Then you need to know the pathway where you want to paste it. In this case I showed a pathway where I wanted it in my Pictures folder on my Desktop. MKDIR: Linux has a bit of a hard time seeing files that have spaces in the names when in the command line. So it's best to just put the words together without any spaces. Anyway this NewFolder will be created in whichever directory you are in. RM command: Now let me explain this. First you need to know the name of the directory. You can't just type directory like I did. Second the “-r” is kind of like a little helper. It gives the the rm command specific orders on what to do. Basically all commands have this function. You can find out what they are by typing man or info before the command. Here is an example. You will see a little document appear inside your terminal. To go through it either use your up and down arrow keys, or use your Page Up or Page Down keys. To exit the document just type: That will get you out of there and back to where you where. INIT command: Restarting the computer: Shutting down the computer: Just for a short reminder. The contents you see in the terminal are different colors as you know by now. I hope this helps everyone who feels a little scared of the command line. Really there is nothing to be scared of. It's really easy after you memorize some commands. |
![]() |