07-24-2011
mkdir command
Hi all, i am new to Linux and need some help.
I used the command: mkdir super
Directory super is created
When i try to change to this directory using: cd /super
I get: bash: cd: /super: No such file or directory
when i use: rm super
I get: rm: cannot remove 'super': Is a directory
What could be the problem?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
The message is:
#mkdir /home/ade
mkdir:Failed to make directory "/home/ade",Operation not applicable.
What's the problem? :mad: (3 Replies)
Discussion started by: new_hand
3 Replies
2. Shell Programming and Scripting
Hi,
I look for a script to create 150 directories :
d000
d001
d002
...
...
d149
would you help me please ?
I think it would be
for i
mkdir d$i
Many thanks.
PS :
#uname -a
AIX fserver 3 5 0050691A4C00 (2 Replies)
Discussion started by: big123456
2 Replies
3. UNIX for Advanced & Expert Users
Is there ant way to increase max number of folders in the directory from the 32766:
Problem UFS:
shell>mkdir mmm
mkdir: mmm: Too many links
But there are no links, just folders.
shell>ls | wc -l
32766 (3 Replies)
Discussion started by: mirusnet
3 Replies
4. Shell Programming and Scripting
I am having trouble using cp and mkdir commands on a small script. The problem is I have spaces what I am trying to mkdir and then copy. Any suggestions on how I can solve this problem? I've tried searching online.
while read linefile
do
echo mkdir -p $CPP$linefile | cut -d / -f 1-5,8-12
... (10 Replies)
Discussion started by: imagiro1
10 Replies
5. UNIX for Dummies Questions & Answers
hi..
i want to know how mkdir command make directory in linux....?? (2 Replies)
Discussion started by: rinkugarg
2 Replies
6. Shell Programming and Scripting
Hi, please help me with this small script
#!/bin/sh
curdir=`pwd`
n20=$curdir'/n20/'
msat=$curdir'/n20/msat/'
if
then
mkdir $n20
fi
if
then
mkdir $msat
fi
for a in 30 40 50 60 70 80
do (4 Replies)
Discussion started by: Dark2Bright
4 Replies
7. Shell Programming and Scripting
Hi, Unix Gurus,
- I have a simple question, I need create multiple directory. I use
mkdir {dir1, dir2, dir3)
I got one directory as
{dir1, dir2, dir3}
I searched @ google, I got answer as above code.:wall::confused:
Anybody has any idea
Thanks in advance
---------- Post updated... (3 Replies)
Discussion started by: ken002
3 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Do the procedure, which if there are 5 parameters then it creates 4 directories with names of 4 parameters, in... (2 Replies)
Discussion started by: bolones
2 Replies
9. UNIX for Beginners Questions & Answers
hi linux expert
what is a difference between:
mkdir test and mkdir ./test
and also
if ( -e /test ) then and if ( -e ./test ) then
thanks in advance
Please use icode or code tags next time for your code and data (1 Reply)
Discussion started by: abdossamad2003a
1 Replies
10. Shell Programming and Scripting
Importing images from a camera (or two).
I sort by date (1901 this month).
Currently (failing)
if ]
then
echo "Found Panasonic G9X"
#echo "List files on camera"
#ls ${pana}/*
. chxdir.sh ${photos}/$mn
I want to change directory to a fixed base ($photos)/$mn... (10 Replies)
Discussion started by: dpawson
10 Replies
LEARN ABOUT DEBIAN
update-catalog
UPDATE-CATALOG(8) Debian UPDATE-CATALOG(8)
NAME
update-catalog - create or update entry in SGML catalog file
SYNOPSIS
update-catalog [options] --add centralized_catalog ordinary_catalog
update-catalog [options] --remove centralized_catalog ordinary_catalog
update-catalog [options] --update-super
DESCRIPTION
update-catalog inserts, updates or removes entries in the SGML centralized catalogs located in /etc/sgml. To change the SGML super catalog
located in /etc/sgml/catalog modify the directory contents of /etc/sgml to contain new files or symbolic links having a .cat extension or
remove (or move) existing centralized catalogs and regenerate the super catalog using the --update-super option. See section SUPER CATALOG
for details on the generation process.
OPTIONS
--add Adds an entry for the ordinary_catalog in the centralized_catalog.
--remove
Removes the entry for the ordinary_catalog from the centralized_catalog.
--update-super
Regenerates the SGML super catalog from the contents of the /etc/sgml directory. See section SUPER CATALOG for details on the super
catalog generation.
--quiet
Prevents the usual diagnostic output.
--test Prevents the update of the catalog and writes the resulting SGML catalog to standard output.
--version
Displays the version information and exits.
--help Display the usage information and exits.
SUPER CATALOG
The super-catalog located in /etc/sgml/catalog cannot be directly modified. It is generated by the update-catalog --update-super command.
The generation considers files in the /etc/sgml directory that have a .cat extension. For instance files ending in .old or .disabled are
not considered. Before adding a catalog to the super catalog it is parsed and verified in order to not corrupt the super catalog. All
referenced catalogs are verified to actually exist. If the check fails, a message is printed and the complete catalog is ignored. This
check ensures that a catalog from a package, which is removed but not purged, is removed from the super catalog.
AUTHOR
Ardo van Rangelrooij <ardo@debian.org>
COPYRIGHT
Copyright (C) 2001-2004 Ardo van Rangelrooij Copyright (C) 2012 Helmut Grohne
This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is no warranty.
Debian Project June 2004 UPDATE-CATALOG(8)