CD(1) General Commands Manual CD(1)NAME
cd - change working directory
Directory becomes the new working directory. The process must have execute (search) permission in directory.
Because a new process is created to execute each command, cd would be ineffective if it were written as a normal command. It is therefore
recognized and executed by the shells. In csh(1) you may specify a list of directories in which directory is to be sought as a subdirec-
tory if it is not a subdirectory of the current directory; see the description of the cdpath variable in csh(1).
SEE ALSO csh(1), sh(1), pwd(1), chdir(2)4th Berkeley Distribution April 29, 1985 CD(1)
Check Out this Related Man Page
CD(1) BSD General Commands Manual CD(1)NAME
cd -- change working directory
Directory is an absolute or relative pathname which becomes the new working directory. The interpretation of a relative pathname by cd
depends on the CDPATH environment variable (see below).
The following environment variables affect the execution of cd:
CDPATH If the directory operand does not begin with a slash (/) character, and the first component is not dot (.) or dot-dot (..), cd
searches for the directory relative to each directory named in the CDPATH variable, in the order listed. The new working directory
is set to the first matching directory found. An empty string in place of a directory pathname represents the current directory. If
the new working directory was derived from CDPATH, it will be printed to the standard output.
HOME If cd is invoked without arguments and the HOME environment variable exists and contains a directory name, that directory becomes the
new working directory.
See csh(1) for more information on environment variables.
The cd utility exits 0 on success, and >0 if an error occurs.
SEE ALSO csh(1), pwd(1), sh(1), chdir(2)STANDARDS
The cd command is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
BSD June 5, 1993 BSD
What's wrong with this script?????
echo "please enter dir"
I'm trying to make a simple script to change dir. But does not work.
it stays at the same dir where i run the script.
What did i do wrong?? (21 Replies)
I'm running Solaris 9, using the CDE gui on a SunBlade 100. I want to substitute the generic wallpapers that CDE has, with my own, i.e. my kids, dog, etc.
Thanks in advance. (19 Replies)
Hi all am trying to boot the system from cdrom in single user mode , however when i am giving command boot cdrom -s i am getting below error
Boot Device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0: f file and args:
Can't read disk label
Can't open disk label package
can,t open boot device
... (17 Replies)
cd command is not working when dual string drive/volume name is passed to cd through variables.......
the above command gives error.......
anyone with a genuine solution ? (16 Replies)
Server need to have the OS reinstalled (5.10 SPARC) and I cannot get it to the OK prompt. I also do not have the ALOM password and I've tried several different methods to zero out the NVRAM but to no avail. There is no ALOM battery that I can pull. I'm connecting via Cutecom (like minicom) and... (18 Replies)
First i'm Dutch, and my English is not very well. Sorry. :D
I have got a Sun Microsystems Ultra 3D (with SPARC processor). The file must be burned to a DVD. And my computer can onley read a cd.
How to get Solaris 10 on a few cds?
Please help me.
Thanks a lot..
Greets. (21 Replies)
Recently I found this (for me) really usefull tool kexec which can load a new Kernel while running one.
I tested it some times with the same kernel I was running, "rebooting" the system without powering it off at any time :D
But I need kexec basically just for live usbs. I want to start... (17 Replies)
Recently our school acquired a number of Sun Blade 100 systems from a university that was previously using them as a computational cluster. We intend to rig them to do the same thing, but they failed to give us the head node, and all the machines we have are still configured to boot from network.... (16 Replies)
I've a question regarding a smbclient-Command in my shell script.
Here my relevant script part:
fileattr=`/opt/samba/bin/smbclient --authentication-file=$AUTH_FILE //$SMB_HOST/$SMB_SHARE 2> /dev/null
put $LOC_FILE $SMB_FILE
... (17 Replies)
I have a sun v880 that i got from ebay for cheap as a way to to learn Solaris and sun hardware in general.
The machine currently has OBP 4.7.0 2002/10/25 and i was wondering if there was a way to update the prom with out and active solaris install, as currently when i proceed with the... (29 Replies)
I am in a terrible emergency. I have multiple cdr files with line count >6000.
I need to append |0| | | | | | | |random| to end of each line. The random number should never repeat.
Please help with a shell script to process all cdr's in a directory with above requirement. (23 Replies)
I have a file in my Unix ( SOLARIS ) with EBCDIC format...I want this file to read in ASCII OR unicode...Is it possible with UNIX to convert this file on ASCII OR UNICODE format from EBCDIC format?
I was searching through web and found only conversion table :(
Below is... (16 Replies)