Basic Command Line commands
Posted on January 19, 2008
Filed Under Uncategorized |
The command line interface is a great interface to perform functions in Ubuntu. To get to the Terminal (CLI) Click on Applications go to Accessories and then Select Terminal.
A basic command is ls this lists the files in the current directory. ls lists all yor files and color codes them. You can also type in dir and it will show you the files in the directory.
Another important command in Ubuntu is sudo this essentially gives you super-user (admin) priveleges to carry out the command. So to install a software package (banshee) you would type in:
sudo apt-get install banshee
Now you just installed banshee but it has a config file you want to edit. But, you don’t know where it was installed. The command whereis tells you the location of “banshee”
whereis banshee
should get an output like this:
banshee: /usr/bin/banshee /usr/lib/banshee /usr/share/banshee
So from this banshee is located in /usr/bin/banshee, /usr/lib/banshee and /user/share/banshee
Remember that linux is NOT windows. The file structure is completely different. So don’t get on your pc and expect to see the “C:\” drive.
Comments
Leave a Reply