Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cd(1t) [opensolaris man page]

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 directory (as specified in the HOME environment variable) if dirName is not given. Returns an empty string. Note that the current working directory 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 SEE ALSO
filename(1T), glob(1T), pwd(1T) KEYWORDS
working directory ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTcl | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tcl is available on http://opensolaris.org. Tcl cd(1T)

Check Out this Related Man Page

Tcl_GetCwd(3TCL)					      Tcl Library Procedures						  Tcl_GetCwd(3TCL)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_GetCwd, Tcl_Chdir - manipulate the current working directory SYNOPSIS
#include <tcl.h> char * Tcl_GetCwd(interp, bufferPtr) int Tcl_Chdir(path) ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which to report an error, if any. Tcl_DString *bufferPtr (in/out) This dynamic string is used to store the current working directory. At the time of the call it should be uninitialized or free. The caller must eventually call Tcl_DStringFree to free up anything stored here. char *path (in) File path in UTF-8 format. _________________________________________________________________ DESCRIPTION
These procedures may be used to manipulate the current working directory for the application. They provide C-level access to the same functionality as the Tcl pwd command. Tcl_GetCwd returns a pointer to a string specifying the current directory, or NULL if the current directory could not be determined. If NULL is returned, an error message is left in the interp's result. Storage for the result string is allocated in bufferPtr; the caller must call Tcl_DStringFree() when the result is no longer needed. The format of the path is UTF-8. Tcl_Chdir changes the applications current working directory to the value specified in path. The format of the passed in string must be UTF-8. The function returns -1 on error or 0 on success. KEYWORDS
pwd ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTcl | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tcl is available on http://opensolaris.org. Tcl 8.1 Tcl_GetCwd(3TCL)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sed command not working

Hi, I have a test file as follows: 1G102119 ^ AA1179291 ^ 06oct2006 09:50:35^ 73.4^ 2^ 13^ 0^ 1493 1G102119 ^ AA1179291 ^ 06oct2006 09:49:45^ 73.4^ 2^ 13^ 0^ 1493 1G102119 ^ AA1179291 ^ 06oct2006 09:48:58^ 73.4^ 2^ 17^ 0^ 2 1G102119 ... (9 Replies)
Discussion started by: shashi_kiran_v
9 Replies

2. UNIX for Dummies Questions & Answers

Change All File Names in a Directory

Hi, If I have a directory full of say 100 random files, and I would like to organize them, for example: FILE001, FILE002, FILE003, FILE004, etc. How would I do this from Terminal, instead of manually changing each file? I'm using Mac OS X, if that makes a difference. Thank you in advance... (8 Replies)
Discussion started by: andou
8 Replies

3. Shell Programming and Scripting

appending two string is not working

Dear Memebers appending string is not working in loop outside of loop itw working fine, but when i put in loop its not working. please look into this code and suggest me how to do this. supplierCode.txt --------------- UGEN SLAND CEL here is my script ------------------- ... (11 Replies)
Discussion started by: krishna9
11 Replies

4. Shell Programming and Scripting

Change directory command (cd)

What's wrong with this script????? Please help!!! !#/bin/sh echo "please enter dir" read input cd $input 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)
Discussion started by: c00kie88
21 Replies

5. UNIX for Dummies Questions & Answers

how do U restrict a user to a single directory?

specifically - I don't need to restrict a user to a single directory - but I want them to be "ROOTED" to their home directory. so if my home directory is /home/onlyme when I login - if I do a pwd - I want to see: / but in real life I will be in /home/onlyme - it just appears as root to... (10 Replies)
Discussion started by: itobenon
10 Replies

6. UNIX for Dummies Questions & Answers

.exrc is not working

Hi I want to customise my vi environment.So i have created a a .exrc file in my working directory and written all set commands.But when i am invoking vi ,it is not taking any effect of the vi. Can anybody have any idea what is happening Thanks in advance Regds Sas (12 Replies)
Discussion started by: SasDutta
12 Replies

7. UNIX for Dummies Questions & Answers

Issues I'm having with the Find Command

:confused: I've been trying to display all my files in my /tmp directory when I'm in it. I just can't get the darn find command working... And I've been trying to look at my /tmp directory on my home directory and I know I'm messing something up there.. Another issue I had while back but... (12 Replies)
Discussion started by: curtner
12 Replies

8. Shell Programming and Scripting

Change all filenames in a directory

I have a directory of files and each file has a random 5 digit string at the beginning that needs to be removed. Plus, there are some files that will be identically named after the 5 digit string is removed and I want those eliminated or moved. any ideas? (17 Replies)
Discussion started by: crumb
17 Replies

9. HP-UX

Why Bash is not working in HP-UX ?

Why Bash is not working in HP-UX ? What is similiar exe which is in HP_UX as Bash? (9 Replies)
Discussion started by: girija
9 Replies

10. Programming

Masking Password with *'s

So I've been working on this for some time now and can't seem to find the solution that works for me. I'm working in C/Unix. Basically, I want to take a user input and output something different. For example, I want to take a password and output *'s. In another instance, I want to take inputed... (35 Replies)
Discussion started by: bigdrock44
35 Replies

11. Red Hat

"if" and "then" statement is not working in RedHat

Dear experts, I'm trying to write a script to calculate the usage of Log Archive in a directory, so if it gets to a point where the directory size is 60%, then send out an FYI.. email. So if then it reaches to 80%, move the logs from that directory. I have written the script as follow but... (10 Replies)
Discussion started by: Afi_Linux
10 Replies

12. Shell Programming and Scripting

Change directory error

bash ~/match.sh runs fine. #!/bin/bash printf "Enter ID : "; read id printf "What panel: "; read panel cd 'C:\Users\cmccabe\Desktop\annovar' && break && break OMR=Output_Mutation_Report perl -aF/\\t/ -lne... (13 Replies)
Discussion started by: cmccabe
13 Replies

13. AIX

VI command not working

Hello all, I've got a production system that the DBA complained that the vi command was no longer working for the oracle service account for a particular instance. When I logged in as myself, I noticed that it wasn't working for my user either. When invoked, it just returns to the prompt with an... (21 Replies)
Discussion started by: ZekesGarage
21 Replies