1 / 4

Basic Unix Commands & GCC

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

primo
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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic Unix Commands & GCC Saurav Karmakar Spring 2007

  2. 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

  3. 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.

  4. 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

More Related