Sunday, 10 November 2019

Starting some Code.


Terminal

It is a command line interface for Ubuntu so here we are going to discuss some of the commands we use in terminal.
To use the commands first we should open terminal. Just go and search terminal in ubuntu and there you will get it

Now you can just type any codes and hit enter. You are in the root directory. In Ubuntu folders we call directory. The first command is ‘ls’ ls is the command used to list all the files in the directory.


The second command is cd(space)(directory name) it is used to enter into the directory. Which is like double clicking on a folder. 
Here the lower case and upper case should be considered. And cd stands for change directory.
The next command is cd(space).. it is used to go previous directory.
The other command is cd. It will take you to the root directory

lets make a small chart to list some basic commands
Commands Function
mkdir(space)(filename) Make new directory in given name.
touch(space)(filename) Make new file with given name here we should mention the extension. For example touch hello.html
Rm (space)(filename) Remove file
Rmdir (space)(filename) Remove directory
clear It is a keyword that clear the screen.
There are so much more..

GNU Nano  

 

The other software we got to introduce is nano text editor.
It is a text editor written in c language. It is also known as GNU nano.
It is very good tool for beginners to start their coding with. It is a keyboard oriented text editor. There will be no graphical users interface will be displayed so It is important to know control keys. It is different from all the slandered shortcuts. Lets see some of them.
*To open nano open up your terminal and type nano and then hit enter..
Short cuts Functions
Ctrl + O Saves current file
Ctrl+ W Goes to the search menu
Ctrl + G Gets the help screen
Ctrl + X Exit from the editor
Ctrl + J Justify the current paragraph
Ctrl + U Uncut similar to past
Ctrl + K Cut
Ctrl + C State the cursors point (which column, which line and which place)
Alt + E Redo
Alt +U Undo
Ctrl + N Next line
Ctrl + R Read file just like open. If you want to open the next file you should close the editor and then again you got to read it otherwise the documents will merged together.
Ctrl + P Previous line
Ctrl + Y Go to screen full up
Ctrl + V Go to screen full down
Ctrl + T Spelling check
Ctrl + 0(zero) Standard zoom
Ctrl + 7 Go to a specific line

A great way to learn anything is just by making our hand dirt. So Just open nano in your computer and make your hand dirt.
Happy coding!

No comments:

Post a Comment