Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help in Unix bash Do not use system() function call in your program Write a C/C++ program (a4part2.c) to do the following tasks. (1) Your

Help in Unix bash

Do not use system() function call in your program

Write a C/C++ program (a4part2.c) to do the following tasks.

(1) Your C program will change the current working directory to a4part1, and call pwd and then it will call ls function to list all the directories and files using R option.

Your C program will navigate the directory structure (as shown in Part1) to visit each subdirectory.

(2) it will list each directory entry and its type.

(3) it will list the inode of each entry with the file-type (e.g., regular file, symbolic link, etc.).

(4) as your C program navigates the directory structure, it will check whether the current directory which it visits has a subdirectory or not. If not, then it will output a message:

** folder1 - this directory does not have any subdirectory **.image text in transcribed

a4partl folder1 folder2 file3 link4 file1 file2 a4partl folder1 folder2 file3 link4 file1 file2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

Price Quantity Supplied Quantity Demanded $1 $3 $5 4 5

Answered: 1 week ago

Question

How flying airoplane?

Answered: 1 week ago