LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Slackware 7.1 (https://www.linuxquestions.org/questions/linux-general-1/slackware-7-1-a-1323/)

Copenhagen Cowboy 03-15-2001 08:44 AM

Ok, one of the reasons that I installed Slackware in the first place was so that I could see how the adduser script was written so that I could adapt it to other flavors. When I run "vi adduser" it opens a new file. What is going on here? HELP.

trickykid 03-15-2001 11:38 AM

Try using locate or find.....that might help you locate the file.

Larry James 03-15-2001 11:55 AM

When you type in vi [filename], the [filename] will bring up the file, "filename". If there isn't currently a file by that anme, it's create a new file by that name. You can't edit an old file that doesn't exit, you in turn will create a new file if the file doesn't exist. You can check to see if a file exist by typing, ls [filename].

If you have a command called adduser as you mentioned, you can look to see where that command is located by typing, "type adduser". If it's in your path, you'll see where it's located and you will edit it either by typing in the full pathname of the file, or by changing to that directory to edit the file.

-- L. James


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