View Full Version : ls implementation
lovelycse
September 10th, 2012, 07:38 AM
how can i implement ls command ....any website help or any guidence plzzz
taras.kuzyo
September 10th, 2012, 07:52 AM
man ls
d3v1150m471c
September 10th, 2012, 08:22 AM
define implement
lovelycse
September 10th, 2012, 09:22 AM
i am talking about ls implementation using C...not about how to use command
spjackson
September 10th, 2012, 09:50 AM
how can i implement ls command ....any website help or any guidence plzzz
Why are you trying to implement ls? Are you wanting to implement a subset of the functionality of ls for learning purposes? If so, what specifically do you want help with?
There is one that someone prepared earlier. Go to http://https://launchpad.net/ubuntu/precise/+source/coreutils and download coreutils_8.13.orig.tar.gz
Tony Flury
September 10th, 2012, 09:51 AM
i am talking about ls implementation using C...not about how to use command
http://linux.die.net/man/2/stat
http://linux.die.net/man/3/opendir
http://linux.die.net/man/3/readdir
in other words - a little research in google -
Lux Perpetua
September 11th, 2012, 03:17 AM
There are freely available implementations of 'ls' if you want to see how it's done in real life. Here are a few:
From GNU Coreutils (http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/ls.c) (canonical implementation for Linux users)
From BusyBox (http://git.busybox.net/busybox/tree/coreutils/ls.c) (much smaller; definitely look at this first)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.