Analytics

Getting to know the terminal console...

The terminal console is an important part in using the OS, as any linux and Unix user would know, it actually empowers the user to do more things with just simple typing.

This baffles Windows users as they look at the terminal as something complicated and geeky, since they may only be aware about the command prompt, but once becoming familiar, it is much easier to doing tasks compared to the casual concept of clicking around with the mouse.

Here are a few commands and tips to get you started.

Updates and Installations

User's note; 
Be careful when using sudo, as this is like a prefix to run the command granting administrator privileges, and as a security measure in mind, as not to make any harm to your system. Make sure to use this command only when necessarily so and with caution.

sudo apt-get update
Will fetch for updates available to be installed

sudo apt-get upgrade 
After fetching for updates, this command will download and install them,
type y to proceed and n cancel

sudo apt-get install gimp blender
In this case, two programs are going to be installed, gimp and blender, after typing install you can type any long list of programs which need to be downloaded and it will gladly do it for you

sudo apt-get remove blender

This will remove the blender package, however program is not completely removed, as linux works depending on 'dependencies', other packages are installed with the program, and thus will require an additional task, following;

sudo apt-get autoremove  
 
This will entirely delete the blender program, as this command looks for any packages which are no longer required by the OS and thus appropriate to remove

Files and Directories

cd
This stands for change directory, which allows you to navigate to a specific directory and work some commands with that directory in mind, in this case I have chosen the Desktop folder

touch  
 
This will create an empty .txt (text) file to the Desktop with the filename 'hello'
 

cp
This will copy 'hello.txt' to the Downloads folder
 

mkdir
This will create a folder named hello to the Desktop

mv  
 
This will move the hello textfile to the folder just created.

rm
Navigating to the hello folder, I am instructing terminal to remove the hello textfile which we have just moved to this folder

Execution

firefox ubuntu.com
 
This will launch firefox and immediately open the website typed in

gedit hello.txt 


This also has flexibility, depending on what you are wanting to do, in the first scenario this would open a text editor for the textfile 'hello'


Also noting that typing any program in terminal will launch it.

Other nuggets of gold...

clear  
This will clear screen inside the terminal for a fresh start

exit
This will quit the terminal.

The terminal console is not just limited to these type of commands, but are rather just a beginner's venture, it is a really powerful tool and has a high purpose within the OS, that any advanced user can literally just work with this.




No comments:

Post a Comment