Just switched from Windows and still a bit scared about the command line? You shouldn't be! The command line is a very powerful, fast and intuitive tool to get things done without clicking buttons and navigating through menus.
Begin!
Master the command line starting with this. In the man intro to the Terminal the following is stated:
"Under Linux there are GUIs (graphical user interfaces), where you can point and click and drag, and hopefully get work done without first reading lots of documentation. The traditional Unix environment is a CLI (command line interface), where you type commands to tell the computer what to do. That is faster and more powerful, but requires finding out what the commands are."
So let's listen to the manual, start the mighty Terminal and learn some cool commands:
Main Menu > Applications > Accessories > Terminal
Install Apps like a Pro
Usage:
sudo apt-get install application-of-your-choice
What it is: The Advanced Packaging Tool (APT) is a easy to use user interface that handles installing and removing packages (aka applications).
Explanation:
Let's say you want to install "widgets" similar to those on Windows Vista and Mac OS X. You can just type:
sudo apt-get install screenlets
and you're done! In less than 5 seconds!
The alternative would be to navigate to the "apt-get" graphical front-end called "Synaptic Package Manager", wait until the packages database refreshes, click the search button, wait for the response, select the package, click Apply, wait for the installation to complete, the database to refresh and finally exit. Wasn't the command line much easier and faster?
Tip
When a binary package isn't available, you download the source code of the application and install it using these commands:
tar xvf MyCuteApp.tar -extracts the the application from the archive.
cd MyCuteApp -navigates to the extracted folder.
./configure -configures the app you want to install.
make -compiles the app.
su -allows system wide changes.
make install -Installs the application.
Fun with folders
Usage:
pwd shows current folder
cd /home/user/MyFolder/ navigating to a folder
ls /home list of what's in a folder
mkdir NewFolder create a new folder
copy cp Folder /user/home -r
Move mv /user/home/Folder /media/USBStick/
Remove rm /user/home/Folder -r
Cool Commands
Here are a few great commands for you to try out when you have nothing else to do!
Show the current date and time date
Show this month's calendar cal
How much time did I spend at the computer uptime
Who are you? whoami
Brag about how much free RAM you have on Linux free
Where is that application I just installed whereis [app]
Disk space usage df -h
Shutdown
Congratulations! Since you're now a linux hacker, you live and breathe in the Terminal. So why not shutdown from the terminal?
To shutdown:
sudo shutdown [-h] now
or restart:
sudo shutdown [-r] now
Look it up!
Unsure what a command does? Read the the short manual and find out.
man command
AncientPC from Digg recommends [-k] apropos option: "Sometimes I wanted to do something but didn't know the correct command to man page, which is where apropos comes in."