C program to list for every file in a directory & its inode number and file name Post author:Educate Post published:October 30, 2023 Post category:C and C++ / OS Post comments:0 Comments #include #include #include main(int argc, char *argv[]) { char d[50]; if(argc==2) { bzero(d,sizeof(d)); strcat(d,"ls "); strcat(d,"-i "); strcat(d,argv[1]); system(d); } else printf("\nInvalid No. of inputs"); } You Might Also Like Program to simulate Two level file organization technique August 22, 2023 Program to find out maximum and minimum using divide and conquer method August 5, 2023 C program to find factorial of a number using functions August 2, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.