Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basic Unix Commands & GCC Saurav Karmakar Spring 2007.

Similar presentations


Presentation on theme: "Basic Unix Commands & GCC Saurav Karmakar Spring 2007."— 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


Download ppt "Basic Unix Commands & GCC Saurav Karmakar Spring 2007."

Similar presentations


Ads by Google