Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

cd (1t)

Name

cd - Change working directory

Synopsis

cd ?dirName?

Description

cd(1t)                       Tcl Built-In Commands                      cd(1t)



______________________________________________________________________________

NAME
       cd - Change working directory

SYNOPSIS
       cd ?dirName?
______________________________________________________________________________

DESCRIPTION
       Change  the current working directory to dirName, or to the home direc-
       tory (as specified in the HOME environment variable) if dirName is  not
       given.   Returns an empty string.  Note that the current working direc-
       tory is a per-process resource; the  cd  command  changes  the  working
       directory  for  all  interpreters  and  (in a threaded environment) all
       threads.

EXAMPLES
       Change to the home directory of the user fred:

              cd ~fred

       Change to the directory lib that is a sibling directory of the  current
       one:

              cd ../lib


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | runtime/tcl-8    |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+
SEE ALSO
       filename(n), glob(n), pwd(n)

KEYWORDS
       working directory



NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source was downloaded from  http://prdownloads.sourceforge.net/tcl/tcl-
       core8.6.7-src.tar.gz

       Further information about this software can be found on the open source
       community website at https://www.tcl.tk/.



Tcl                                                                     cd(1t)