Fermé

program of 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

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Unix

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

en voir plus : symbolic programming, stat coder, stat c, programming program, $l, home link programming, c stat, command line programming, command group, argument programming, ab test, ab software, test ab, symbolic, php command, entry l, command, run php command, command line print file, command line print

Concernant l'employeur :
( 11 commentaires ) United States

Nº du projet : #3104618

2 freelance font une offre moyenne de $14 pour ce travail

mihaiscortaru

See private message.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(160 Commentaires)
6.0
reidosafonsinhos

See private message.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)
1.3