LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-15-2001, 08:44 AM   #1
Copenhagen Cowboy
Member
 
Registered: Mar 2001
Location: D/FW
Posts: 75

Rep: Reputation: 15
Question


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.
 
Old 03-15-2001, 11:38 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Try using locate or find.....that might help you locate the file.
 
Old 03-15-2001, 11:55 AM   #3
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381

Rep: Reputation: 40
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM
Slackware 10 RC2 released; Slackware 10 imminent... SBing Slackware 22 06-22-2004 07:53 AM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM
wine and winesetuptk working well with slackware 9.0 and slackware 9.1 oobe Linux - Software 0 10-19-2003 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration