LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2004, 08:51 PM   #1
jackel
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
Question Simple Commands


I am very new to linux, but I have been able to do alot so far. This may be a stupid question, but how do I create a new file. I have looked at many sites with a list of commands, but I can't seem to find a very simple command to create a new file.

I am trying to do this: add a file named swat in your /etc/xinetd.d directory

How do I add a file, I have looked at many commands, but none say how to just create a new file.

Sorry for the dumb question...
 
Old 04-13-2004, 08:55 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
you can just open a text editor and when your done adding
its contents, you can just save the file as "swat" in that directory.

or if you want to create the empty file before adding anything you can
type :
touch swat
within the folder you want the file to be located.
 
Old 04-13-2004, 08:58 PM   #3
jackel
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
oh, text editor, seems so simple now... Thanx
 
Old 04-14-2004, 12:43 AM   #4
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
If the file just needs to be present you can use the touch command (i.e. touch swat). It creates an empty file with the name specified. If you use touch on an existing file it sets the file's modification time to the current time. It just kind of...touches it
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems creating a simple bootable cd to perform a simple task czarherr Linux - Software 1 11-11-2004 06:22 AM
Automating simple commands, scripting or programming? entob *BSD 3 09-01-2004 02:56 AM
simple search commands in linux t3___ Linux - Newbie 6 06-08-2004 02:16 PM
Is there a simple way to launch commands on other machines? BrianK Linux - Networking 3 01-04-2004 05:30 PM
Linux commands - simple for some jmcmillan Linux - Newbie 4 06-10-2003 03:14 PM


All times are GMT -5. The time now is 12:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration