Skip to main content

Examples Of Basic Commands Used in C / Ubuntu / Putty

Hey All,

Today we will see a very simple example of the usage of those commands which i had mentioned on my old post .If you have not yet checked it out ,visit below link

👇     👇
Detailed Explanation of Basic Commands
👆     👆

Sample Usage :-






[17303102@SampleServer1 ~]$ 

  1. ls                                   //shows the content of the current directory
  2. mkdir lab1                    //make a folder named "lab1"
  3. ls
  4. pwd                              //shows the address of the directory where you are  currently working                                          //on    c
  5. cd lab1                        //Navigates/Goes To the directory "lab1"  created earlier
  6. pwd
  7. ls
  8. vi hello.c                   //creates or opens the file named "hello.c" here 'c' denotes the                                                      //filetype/extension
  9. ls
  10. cc hello.c                  //compiles the file named "hello.c" and saves it to the default file  named                                    //"a.out"
  11. ls
  12. cc hello.c -o hello.out //compiles the file named "hello." and saves it the the custom file named                                     //"hello.out"
  13. ls
  14. ./hello.out                   //runs/executes the file named "hello.out"
  15. vi add.c                       //opens another file named "add.c"
  16. cc add.c
  17. cc add.c -o add.out
  18. ./add.out
  19. pwd
  20. cd ..                     //explained already in the other post mentioned at the starting of this post
  21. ls
  22. mkdir lab2
  23. ls
  24. pwd
  25. ls
  26. cd lab1
  27. pwd
  28. ls
  29. cd ..
  30. pwd
  31. cd lab2
  32. vi 2a.c
  33. cd
  34. pwd



Source :- Reference Books and Ubuntu Support

This guide was last updated on 25/10/17 and is up to date till the above mentioned date.
I will not be responsible for any damage to your system due to any mistake by you in following the guide correctly !
If you face any difficulties or the steps fail ,try contacting  me ! I will try my best to help you !






Have a nice day !
-Febin Koshy Philip
 Febkosq8

Comments

Popular posts from this blog

MATLAB 2017a (Windows)

Hey All , Today i will be sharing with you the instructions on how to install the latest version to date of MATLAB (2017a) on Windows 64 Bit Architecture along with procedures on cracking it for lifetime for free . I will try my best to make the the guide as easy as i can so that everyone can follow it easily  :) Pre-Requisites :- 1. Mathworks Account 2.MATLAB 2017a Installation file 3.Fairly Decent Internet Connection 4.MATLAB Pre-Activated Crack Procedures :- 1. Create your own Mathworks account if you already don't have created one . Go to  Create Account Link  & enter your own details and follow the on screen instructions . Make sure you have verified your email id before proceeding 2. Go to  Get Trial Licence Link  and login then fill in your details and click the submit button. After that on the next page choose  the products you want to use by clicking the add to cart button and then click Continue . Expert Advice:- If you ...

PUTTY Installation Guide

Hey All, Today i will be sharing with you on how to INSTALL Putty . This application is used for connecting SSH tunnels on Windows OS . Pre-Requisites :- 1) Putty For Windows Installation File . 2) Some General Computer Knowledge Procedure :- 1) Download the software from this link  Download Link For x32 & x64  . Direct Link for x64 OS Also provided at the end of this guide . 2) Open the downloaded file and click the  Next button on the following 2 pages . 3) Click the button Install button and wait till it installs the software ,then press the Finish button. 4) Congratulations ,you have successfully installed PUTTY on you computer ! Downloads :- 1) Link for the x64 Installation File This guide was created on 29/12/18 and is up to date till the versions released till the above mentioned date. I will not be responsible for any damage to your system due to any mistake by you in following the steps correctly ! If you face any di...

Basic's of LINUX Command's (Explained usage with UBUNTU / PUTTY / Etc)

Hey All, Today i will be sharing with you the basic commands you will need to know for using Terminal in UBUNTU or while using PUTTY or any similar terminal version's on Windows To launch a new Terminal Session on Ubuntu:- Press CTRL + ALT  +  T . Syntax is defined as the method to write a particular command or statement ! COMMANDS :- 1) The tilde (~) symbol stands for your home directory. If you are user, then the tilde (~) stands for /home/user 2) pwd: The pwd command will allow you to know in which directory you're located (pwd stands for "print working directory"). Example: " pwd " in the Desktop directory will show "~/Desktop". Note that the GNOME Terminal also displays this information in the title bar of its window. A useful gnemonic is "present working directory." 3) mkdir : This command is used to create a new folder .  Syntax :- mkdir <folder name>  Example :- mkdir Test ,where "Test" is the fo...