PDA

View Full Version : [SOLVED] help finding the source file for vi cp cat commamds



priyamvaidya
February 5th, 2011, 06:18 AM
hi

i am somewhat new to ubuntu 10.10 (Maverick meerkat)



i want to find the source file (.c) file for cat, vi, cd commands. Where are these files located. i searched /usr/src but unable to locate these files.
how to edit/update anyone of this file .
once edited, how to compile and make the program work


help is appreciated

oldos2er
February 5th, 2011, 08:02 PM
vi source is here: http://ex-vi.sourceforge.net/

cat is part of the coreutils package, to download the source code for it run
apt-get source coreutils

cd is a shell command, more info here: http://ss64.com/links/bash.html