Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Program a basic version of the "stat" command on linux, details are in the file Question must be answered in a

Program a basic version of the "stat" command on linux, details are in the file Question must be answered in a

Computer Science

Program a basic version of the "stat" command on linux, details are in the file

Question must be answered in a .c file, following the POSIX
norm, with a Makefile that contains these lines :

CC      = gcc
CFLAGS  = -Wall -Wextra
CFLAGS += -D_XOPEN_SOURCE=500
CFLAGS += -g

Question:

Implement a basic version of the stat command, taking only one argument : the file.
Your code must use same  dedicated system call that the stat command uses to get the metadata it displays.
Check the possibles errors and display the
informations in the simplest way possible.
It must display the type of the file, the access in a octal of 4 numbers (exemple "0664"), the login and the number of the group, you will use for that
the getpwuid and the getgrgid functions.

Option 1

Low Cost Option
Download this past answer in few clicks

75 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE