Basic Linux Command With Teacher
Basic Linux Command With Teacher
ls // list
ls -a // list all
cd /mnt/c // to go on to c drive
touch // to create any file after u gone on wherever folders u wanted to.
cd // to default directory
cd.. // to go back
grep // used to search some file word [grep searchingtext name filename.txt]
wc[wc -w filename.txt] //To count the word that we use in our file we use the
[wc -l filename.txt] // you want to count the number of lines
[ wc -m filename.txt]// you want the count the number characters in the file
[wc filename.txt]// you want all the information in a single command
ls -lgF // used for to allow you to see the file/folder permition and other info
====================================
NB :- to visualize the changes ine the file use another appropriate command.
=========================================DAY
THREE================================================================
THE way to install c in ubuntu (step by step)
1. u have to update the system using the ubuntu cmd( "sudo apt update ")
2. now, after the system update is done. u have to install language compiler of any
kind using the cmd(" sudo apt install gcc and sudo apt install g++") it is better
if u install both for better library.
3. now, after successfull instalation of the compiler u have to write files using
their own extenssion file format in this case ours is ".c" the command is as
follow;
-----> use touch to write files
-----> compile the file
-----> run the the compile file
4. to compile created file containing c language use cmd ("gcc -o <file name>" )
5. to display the code or outputuse cmd (" ./<file name>")