Basic unix commands gcc
This presentation is the property of its rightful owner.
Sponsored Links
1 / 4

Basic Unix Commands & GCC PowerPoint PPT Presentation


  • 85 Views
  • Uploaded on
  • Presentation posted in: General

Basic Unix Commands & GCC. Saurav Karmakar Spring 2007. Basic Unix Commands. man - format and display the on-line manual pages viz. Command : $man ls ls - list directory contents Command : $ls pwd - print name of current/working directory Command : $pwd mkdir - create a directory

Download Presentation

Basic Unix Commands & GCC

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Basic unix commands gcc

Basic Unix Commands & GCC

Saurav Karmakar

Spring 2007


Basic unix commands

Basic Unix Commands

  • man- format and display the on-line manual pages

    viz. Command : $man ls

  • ls - list directory contents

    Command : $ls

  • pwd- print name of current/working directory

    Command : $pwd

  • mkdir- create a directory

    viz. Command : $mkdir d1

  • cd – change directory

    viz. Command : $cd d1


Basic unix commands1

Basic Unix Commands

  • cd..– Move to the parent directory of the current directory. Command : $cd ..

  • cd~- Move to the user's home directory which is "/home/username". Command : $cd~

  • cp - Copy the files "myfile" to the file "yourfile" in the current working directory.

    Command : $cp myfile yourfile

  • logout - Logs the current user off the system.

    viz. Command : $logout

  • passwd– change password for an account

    viz. Command : $passwd

Logs the current user off the system.


Gcc compiler

GCC compiler

  • Compiling C++ program through c++ :

    Compiles the c++ program file and creates an output.

    Command : $c++ program.cc

    Command : $c++ program.cc –o out

  • Executing the output :

    Command : $./a.out

    Command : $./out


  • Login