Simple commands

I need some simple commands to do the following:
Format a disk in A: drive.
Create a directory on A: drive.
Create a sub-directory.
Create a text file and save it to the sub directory.
Copy the file to another directory and rename it.
kenny1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GtristCommented:
In SCO OpenServer you would unix format a floppy by typing format /dev/fd0. To create a directory you would type
mkdir <directory name>. You must have write permissions in the parent directory. You can use the same process to create a sub-directory. Another way, if you want to populate the subdirctory with data before the parent, is to type mkdir -p <directory path to subdirectory>. This will create the subdirectory and the parent tree. There are a number of ways to create a file. You can use vi <filename>, but you will have to type man vi to learn a little about vi commands. You can also use
cat > <filename> to create a file. After entering the command for cat, you just type the contents of your file and end with a Control-D.
You can copy files with cp file1 file2.
You can rename files with the mv command. mv <filename> <newfilename>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kenny1Author Commented:
This was a research question for college work and your comment included all the help I needed.
Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.