LinuxQuestions.org
Review your favorite Linux distribution.
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 10-29-2003, 12:04 PM   #1
mgam
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Question how to write a script to create a directory


Hi All - I'm new to this site and also to linux.I'm currently a student.
Does anyone know of a good site that would show how to write a script that creates a simple directoy?
Also what is a cronjob and do you write it?
Kind Regards
Mark
 
Old 10-29-2003, 12:08 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
mkdir will make a directory. Put this in a file:
Code:
#!/bin/sh
mkdir <directory>
Set the file's permissions to execute, then run the file.

Last edited by aaa; 10-29-2003 at 12:09 PM.
 
  


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
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
how to write a script to move files from one directory to another myeire Linux - Newbie 7 02-25-2005 10:01 AM
Create custom user's directory with simple script dtournas Programming 2 09-09-2004 05:00 AM
Run script during file copy or create in directory neranjana Linux - General 1 01-13-2004 06:57 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM


All times are GMT -5. The time now is 12:49 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