Play Video
1
Setting Your Working Directory and Editing R Code (Windows)
Setting Your Working Directory and Editing R Code (Windows)
::2012/09/23::
Play Video
2
Setting Your Working Directory and Editing R Code (Mac)
Setting Your Working Directory and Editing R Code (Mac)
::2012/09/23::
Play Video
3
R Tour for Beginners (Pt 3.5): Working Directory in Windows
R Tour for Beginners (Pt 3.5): Working Directory in Windows
::2012/09/19::
Play Video
4
R Statistical: How to Get & Set Working Directory
R Statistical: How to Get & Set Working Directory
::2010/10/28::
Play Video
5
R Tour for Beginners (Pt 3): Working Directory
R Tour for Beginners (Pt 3): Working Directory
::2012/09/19::
Play Video
6
How to Change Your Working Directory in Windows
How to Change Your Working Directory in Windows
::2012/12/21::
Play Video
7
Arcview 3.3: Saving + Working Directory
Arcview 3.3: Saving + Working Directory
::2010/09/30::
Play Video
8
RStudio, Setting the Working Directory
RStudio, Setting the Working Directory
::2013/10/14::
Play Video
9
How to change working directory:  SQL Virtual Database
How to change working directory: SQL Virtual Database
::2014/03/07::
Play Video
10
How to change R working directory in Windows
How to change R working directory in Windows
::2012/01/27::
Play Video
11
Java tutorials for beginners  4  Setting up working directory for java programs
Java tutorials for beginners 4 Setting up working directory for java programs
::2013/08/31::
Play Video
12
Change To The Previous Working Directory In Linux Step By Step Tutorial
Change To The Previous Working Directory In Linux Step By Step Tutorial
::2012/06/08::
Play Video
13
Lesson 1 - PHP - File Systems - get Current Working Directory and Changing Directory in PHP
Lesson 1 - PHP - File Systems - get Current Working Directory and Changing Directory in PHP
::2013/12/01::
Play Video
14
Print Working Directory pwd Shell Command - Bin Bash
Print Working Directory pwd Shell Command - Bin Bash
::2013/07/24::
Play Video
15
Setting the working directory in R
Setting the working directory in R
::2011/05/04::
Play Video
16
GNOME Terminal How to Open new tab with working directory Ubuntu
GNOME Terminal How to Open new tab with working directory Ubuntu
::2014/02/22::
Play Video
17
How To Check Your Present Working Directory In Ubuntu Linux Via Command Line Or Terminal  Tutorial
How To Check Your Present Working Directory In Ubuntu Linux Via Command Line Or Terminal Tutorial
::2011/08/13::
Play Video
18
Updating your local Git repository and working directory
Updating your local Git repository and working directory
::2013/01/13::
Play Video
19
Set Working Directory - project folder
Set Working Directory - project folder
::2012/10/05::
Play Video
20
0201 The working directory
0201 The working directory
::2012/09/14::
Play Video
21
WorkingDirectory
WorkingDirectory
::2012/09/20::
Play Video
22
how to find out your working directory in linux mint 13
how to find out your working directory in linux mint 13
::2012/07/19::
Play Video
23
Linux CLI: pwd (print working directory)
Linux CLI: pwd (print working directory)
::2009/03/28::
Play Video
24
Git 04 - Repositories and working directory
Git 04 - Repositories and working directory
::2011/10/31::
Play Video
25
Setting Working Directory in Pro Engineer
Setting Working Directory in Pro Engineer
::2009/03/27::
Play Video
26
PRO ENGINEER TUTORIAL 1 WORKING DIRECTORY
PRO ENGINEER TUTORIAL 1 WORKING DIRECTORY
::2009/07/05::
Play Video
27
Minecraft Working Directory Print!
Minecraft Working Directory Print!
::2012/01/28::
Play Video
28
OSX Lion New Tab Same Working Directory
OSX Lion New Tab Same Working Directory
::2011/07/20::
Play Video
29
Setting up a Working Directory for VW
Setting up a Working Directory for VW
::2009/11/03::
Play Video
30
VTC Player   Perl Fundamentals, Changing the current working directory
VTC Player Perl Fundamentals, Changing the current working directory
::2014/01/27::
Play Video
31
Online Linux Training to display present work directory
Online Linux Training to display present work directory
::2011/01/18::
Play Video
32
how to know about your working directory in Linux
how to know about your working directory in Linux
::2008/11/23::
Play Video
33
Shell Basics - Working with Files and Directories - Linux Tutorial #4
Shell Basics - Working with Files and Directories - Linux Tutorial #4
::2012/11/29::
Play Video
34
Unix Commands - 02 - Working With Directory Commands
Unix Commands - 02 - Working With Directory Commands
::2013/04/29::
Play Video
35
BASH Tutorial - 2 - list files, change directory, and navigation
BASH Tutorial - 2 - list files, change directory, and navigation
::2013/10/21::
Play Video
36
CD (change directory) MD (Make Directory) command
CD (change directory) MD (Make Directory) command
::2013/03/30::
Play Video
37
Rocking Zsh: directory specific shell profiles
Rocking Zsh: directory specific shell profiles
::2011/10/08::
Play Video
38
Change Directory cd Parent Directory Shell Command - Bin Bash
Change Directory cd Parent Directory Shell Command - Bin Bash
::2013/08/07::
Play Video
39
Change Directory cd Shell Command - Bin Bash
Change Directory cd Shell Command - Bin Bash
::2013/07/31::
Play Video
40
Creo - Set Directory and Erase Not Displayed
Creo - Set Directory and Erase Not Displayed
::2013/01/18::
Play Video
41
DTerm - Awesome Directory Aware Terminal
DTerm - Awesome Directory Aware Terminal
::2011/02/17::
Play Video
42
How to show the Current Directory your in FreeBSD
How to show the Current Directory your in FreeBSD
::2012/06/16::
Play Video
43
SWG:ANH Server Setup I
SWG:ANH Server Setup I
::2012/08/22::
Play Video
44
Bash Scripting Tutorial 1 - Basics: chsh, ls, cd, mkdir, rm, and the working directory
Bash Scripting Tutorial 1 - Basics: chsh, ls, cd, mkdir, rm, and the working directory
::2014/03/16::
Play Video
45
Working with Active directory Sites
Working with Active directory Sites
::2013/09/28::
Play Video
46
Latest Directory Opus Keygen [Updated April 2014]
Latest Directory Opus Keygen [Updated April 2014]
::2014/04/22::
Play Video
47
Linux Terminal Tutorial Episode 1: Back to Basics
Linux Terminal Tutorial Episode 1: Back to Basics
::2012/08/16::
Play Video
48
Change the directory of the Artica categories database
Change the directory of the Artica categories database
::2013/11/20::
Play Video
49
SPPH Ramp-up: Setting Directory and Reading Data (Windows)
SPPH Ramp-up: Setting Directory and Reading Data (Windows)
::2012/09/12::
Play Video
50
Learning Linux With Nachtfish! - Directory Commands PART 1 (PWD, LS, CD)
Learning Linux With Nachtfish! - Directory Commands PART 1 (PWD, LS, CD)
::2013/05/10::
NEXT >>
RESULTS [51 .. 101]
From Wikipedia, the free encyclopedia
  (Redirected from Chdir)
Jump to: navigation, search

In computing, the working directory of a process is a directory of a hierarchical file system, if any,[1] dynamically associated with each process. When the process refers to a file using a simple file name or relative path (as opposed to a file designated by a full path from a root directory), the reference is interpreted relative to the current working directory of the process. So for example a process with working directory /rabbit-hats that asks to create the file foo.txt will end up creating the file /rabbit-hats/foo.txt.

In operating systems[edit]

In most computer file systems, every directory has an entry (usually named ".") which points to the directory itself.

In most DOS and UNIX command shells, as well as in the Microsoft Windows command line interpreters cmd.exe and Windows PowerShell, the working directory can be changed by using the cd or chdir commands. In Unix shells, the pwd command outputs a full pathname of the current working directory; the equivalent command in DOS and Windows is cd without arguments (whereas in Unix, cd used without arguments takes the user back to his/her home directory). The environment variable PWD (in Unix/Linux shells) or CD (in DOS/Windows shells) is also set for use in scripts, so that one need not start an external program. Microsoft Windows file shortcuts have the ability to store the working directory.

In programming languages[edit]

Most programming languages provides an interface to the file system functions of the operating system, including the ability to set (change) the working directory of the program.

In the C language, the POSIX function chdir() effects the system call which changes the working directory.[2] Its argument is a text string with a path to the new directory, either absolute or relative to the old one. Where available, it can be called by a process to set its working directory.

There is the same function in other languages. In Visual Basic it is usually spelled CHDIR().

Unlike the Windows API or POSIX C function, neither the Java programming language nor the Java Virtual Machine supports chdir() directly;[clarification needed] a change request remained open for over a decade while the team responsible for Java considered the alternatives, though by 2008 the request was denied after only limited support was introduced (affecting first java.lang.Runtime and later, java.lang.ProcessBuilder ).[3]

See also[edit]

References[edit]

  1. ^ There are operating systems that support a hierarchical file system but have no concept of "working directory"; for example Texas Instruments' DX10, used for the TI-990 series.
  2. ^ The Open Group Base Specifications Issue 6 and IEEE Std 1003.1, 2004 Edition
  3. ^ "Java - Bug ID: 4045688". Bug Database. Sun Microsystems. 1997-04-17. Retrieved 2011-02-20. 

External links[edit]

Wikipedia content is licensed under the GFDL License
Powered by YouTube
LEGAL
  • Mashpedia © 2014