Commit | Line | Data |
---|---|---|
60aceb15 KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
d909a2a9 | 5 | .\" @(#)cd.1 6.1 (Berkeley) %G% |
60aceb15 | 6 | .\" |
d909a2a9 | 7 | .TH CD 1 "" |
60aceb15 KM |
8 | .UC 4 |
9 | .SH NAME | |
10 | cd \- change working directory | |
11 | .SH SYNOPSIS | |
12 | .B cd | |
13 | directory | |
14 | .SH DESCRIPTION | |
15 | .I Directory | |
16 | becomes the new working directory. | |
17 | The process must have execute (search) | |
18 | permission in | |
19 | .IR directory . | |
20 | .PP | |
21 | Because a new process is created to execute each command, | |
22 | .I cd | |
23 | would be ineffective if it were written as a | |
24 | normal command. It is therefore recognized and executed | |
25 | by the shells. | |
26 | In | |
27 | .IR csh (1) | |
28 | you may specify a list of directories in which | |
29 | .I directory | |
30 | is to be sought as a subdirectory if it is not | |
31 | a subdirectory of the current directory; | |
32 | see the description of the | |
33 | .I cdpath | |
34 | variable in | |
35 | .IR csh (1). | |
36 | .SH "SEE ALSO" | |
37 | csh(1), sh(1), pwd(1), chdir(2) |