Implementing pwd command in C/C++

pwd (Present Working Directory) command is one of the basic bash line command used for getting the path of the directory we are currently working on! The command pwd itself abbreviates to "present working directory". We will use the headerfile dirent.h for directory structures and objects and implement our pwd command in C/C++. This will involve the getcwd() function call. So lets move on to the initial setup:


Initial Setup

Make a directory named "command" and inside that make a directory named ...

 •  0 comments  •  flag
Share on Twitter
Published on December 02, 2020 22:20
No comments have been added yet.