LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   newbie! help please! (https://www.linuxquestions.org/questions/linux-newbie-8/newbie-help-please-245030/)

speakerbox 10-20-2004 07:11 AM

newbie! help please!
 
hey there everyone, this is a very easy question but i just cant seem to work it out, i have just started stduying linux in a diploma of network engineering..

all i need is the command to type in shell to make a copy of the /etc/group and the /etc/passwd files and merge them into another file called info

mv etc/group info
or cp etc/group then mv group info?

any help would be great! thanks

paicolman 10-20-2004 07:22 AM

Since both are text files, a simple way would be:

cat /etc/group > info
cat /etc/passwd >> info


All times are GMT -5. The time now is 12:04 PM.