Terminé

program to execute ls -l command

The purpose of this assignment is to write a program similar to ls ??"l command using C programming. It reads the directory name on the command line and displays one line for each file in the directory. Description You will write a program lsfiles, which will accept the directory name as command line argument. e.g. $lsfiles /home/msw/ab The output of the program will be something like this: /home/msw/ab: 2 drwxr-x--- 7 0/1 512 Dec 21 22:20 . 2 drwxr-z--- 3 0/0 512 Dec 21 20:45 .. 16 drwx------ 2 0/0 8192 Apr 19 16:04 lost+found 8 -rwxr----- 1 40/1 1024 May 5 12:45 myprg The entries in above listing are described below: - 1st entry: number of blocks - 2nd entry: type of file and permissions - 3rd entry: number of links - 4th entry: user id and group id - 5th entry: size of the file (If the file is a device, print its major and minor device number.) - 6th entry: last modification time of the file - 7th entry: name of the file (If file is a symbolic link, also print what it points to. Create a symbolic link to test this option.) Note: You may have to use stat()/lstat(), opendir(), readdir(), ctime(), readlink() functions in addition to other functions.

## Deliverables

100% completed and fully functional and working program by the deadline Sufficient comments explaining what each step is doing.

## Platform

Unix

Compétences : Programmation C, Ingénierie, Linux, MySQL, PHP, Architecture Logicielle, Tests de Logiciels, UNIX

en voir plus : symbolic programming, stat c, programming program, $l, home link programming, c stat, command line programming, command group, argument programming, ab test, test ab, symbolic, php command, option to accept, entry l, command, command line print file, command line print, command command, execute

Concernant l'employeur :
( 11 commentaires ) United States

Nº du projet : #3103018

Décerné à:

senatusdeve

See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 3 jours
(10 Commentaires)
4.1

12 freelance font une offre moyenne de $15 pour ce travail

mihaiscortaru

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(160 Commentaires)
6.0
idleswell

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(175 Commentaires)
5.9
ajaymovalia

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(17 Commentaires)
5.1
vw945703vw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(22 Commentaires)
4.2
alongzju

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(32 Commentaires)
3.7
sergheizagaiciuc

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(8 Commentaires)
2.7
ussrvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(14 Commentaires)
2.2
rosoftteam

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(3 Commentaires)
1.4
powermacstudio

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(6 Commentaires)
1.4
codedevvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(2 Commentaires)
0.0
greypool

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)
0.0