how do i make a new directory?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how do i make a new directory?
# 1  
Old 03-25-2002
Question how do i make a new directory?

i know this is a pretty lame question, but im trying to ftp a file to a unix server - and i want to put it in a folder called "tmp"

but when i try to do a " cd /tmp" it tells me there is no such folder.

can someone tell me the command to create a "tmp" folder?


thanks
# 2  
Old 03-25-2002
its simple..use mkdir - make directories

$ mkdir tmp

[mkdir [OPTION] DIRECTORY]
for more information do man mkdir or info mkdir
# 3  
Old 03-25-2002
thanks - that was easy enough. i really appreciate it. im not really a unix guy -

=)
# 4  
Old 03-25-2002
Bwa-ha-ha-ha-ha!

You are now! Bwa-ha-ha-ha-ha!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Make directory used as mount point read-only

For my backup , I mount and external hard disk to /mnt/mybackup and then I do an rsync to /mnt/mybackup If for some reason the rsync fails, I want to prevent it from writing data on the server hard disk itself since the external hard disk will no longer be mounted on it. I want /mnt/mybackup... (8 Replies)
Discussion started by: coolatt
8 Replies

2. UNIX for Advanced & Expert Users

Make a subdirectory the root directory

I have a series of configuration files to deliver to multiple unix environments (dev, test, bench, prod etc). However I don't to modify them for each environment. The files are text which currently contain this type of directory information IN=/DVT/ms/sas/reception/PIL_QPA_SID/GSPIN001... (5 Replies)
Discussion started by: clarcombe
5 Replies

3. Shell Programming and Scripting

Problems with using grep to make backups to a different directory

I am trying to program a script that is using grep to find lines in a file in my home directory, and then use a pipe command to copy what is shown into different files in a different directory to create backup files. When I run it, though, it only creates a copy of the file that grep was going... (7 Replies)
Discussion started by: sammythesp3rmy
7 Replies

4. UNIX for Dummies Questions & Answers

Make directory in script

I'm creating a file that reads: cd $HOME echo What would you like to call the tar file? read TARNAME tar -cf $TARNAME.tar labs/* mkdir backups mv $TARNAME.tar backups/ Now my problem I'm having is that some people have the backups directory and some don't. How can I make it that if they... (1 Reply)
Discussion started by: bbowers
1 Replies

5. UNIX for Dummies Questions & Answers

how to change the destination directory of a make install

Hi there, I'm installing the sleuthkit from sources (because the debian package is crap). So I go threw the process of wget + tar + configure + make + make install. At the end, all the executables and libraries are in /usr/local/bin/, /usr/local/lib/, /usr/local/share/... How can I do to... (3 Replies)
Discussion started by: chebarbudo
3 Replies

6. UNIX for Dummies Questions & Answers

Make a script accessible from any directory

I wrote a small fortran program that I want to control with a bash script. The bash script builds a parameter file that is used by the fortran program. I want to make it so I can access the script from any directory on my computer. How do I do that? Or what key words should I search for to find... (1 Reply)
Discussion started by: C_James
1 Replies

7. Shell Programming and Scripting

check if a directory exists if not make it

Hey guys im trying to check if the directory exists i get a syntax error on the elif statement iv tried using else and still same result im not sure. If the directory does not exist can i just insert mkdir /tmp/old under the elif once that part gets working if ; then #do nothing elif echo... (20 Replies)
Discussion started by: musicmancanora
20 Replies

8. Shell Programming and Scripting

How Can I Make Subdirectories In A Directory?

I cant remember how, i use to know but its been like 2 years since ive used shell can anyone help me? (7 Replies)
Discussion started by: kprescod4158
7 Replies

9. Shell Programming and Scripting

make directory script

Hi, I try to write a script to create a new directory. #!/bin/bash echo "Please enter folder name (6 characters only) :" read foldername mkdir /home/user/$foldername $foldername >> /home/list/list.txt My question/situation: 1) how to ensure the folder name MUST BE 6 characters... (0 Replies)
Discussion started by: malaysoul
0 Replies

10. Shell Programming and Scripting

Need script to make big directory structure

Hi, I'm a novice and I'd like to make a directory structure with a hundred or so folders. I've tried mkdir /foo/foo1/etc... mkdir /foo/foo2/etc mkdir /foo/foo3/etc mkdir /foo/foo4/etc ...but it appends '@' to each folder name and then fails on the subdirectories. Is it better to use a... (2 Replies)
Discussion started by: kamur
2 Replies
Login or Register to Ask a Question