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 C Program to perform the Insertion into a B-tree August 30, 2023 C program to arrange a list of integers in ascending order using Insertion sort August 31, 2023 C program to implement double ended queue ADT using doubly linked list August 31, 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.