Technopedia Center
PMB University Brochure
Faculty of Engineering and Computer Science
S1 Informatics S1 Information Systems S1 Information Technology S1 Computer Engineering S1 Electrical Engineering S1 Civil Engineering

faculty of Economics and Business
S1 Management S1 Accountancy

Faculty of Letters and Educational Sciences
S1 English literature S1 English language education S1 Mathematics education S1 Sports Education
  • Registerasi
  • Brosur UTI
  • Kip Scholarship Information
  • Performance
  1. Weltenzyklopädie
  2. cd (commande)
cd (commande) 👆 Click Here! Read More..
Un article de Wikipédia, l'encyclopédie libre.

Page d’aide sur l’homonymie

Pour les articles homonymes, voir CD (homonymie).

Cd

Description de l'image Cd command.png.
Informations
Type Utilitaire UNIX (d)
Commande CMD (d)
Commande MS-DOS (en)Voir et modifier les données sur Wikidata

modifier - modifier le code - voir Wikidata (aide)

cd (ou parfois chdir, abréviation de l'anglais change directory) est une commande informatique disponible dans les interfaces en ligne de commande pour changer de répertoire courant[1],[2].

chdir est un appel système qui modifie l'attribut current working directory du processus qui l'invoque, cette fonction n'est pas un programme à part, et elle est intégrée à l'interpréteur de commandes.

Utilisation dans les shells

[modifier | modifier le code]

On spécifie comme premier paramètre le répertoire où l'on désire aller :

$> cd <répertoire>

Exemples :

$> cd /home
$> cd home

Lorsque le répertoire n'est pas spécifié, le répertoire personnel de l'utilisateur qui a lancé la commande est choisi.

En pratique, en utilisant « - » (moins) comme répertoire, cela a pour effet d'aller dans le répertoire où l'on se trouvait avant (un peu comme le bouton précédent d'un gestionnaire de fichiers). Le shell utilise en fait de façon transparente les variables d'environnement PWD (contenant le répertoire courant) et OLDPWD (contenant le répertoire précédent). Ainsi, lorsque l'on fait un cd -, le contenu de ces deux variables est échangé[3].

Particularité

[modifier | modifier le code]

Lorsque l'on désire aller dans le répertoire parent, on spécifie le répertoire fictif .. (deux points). Cependant, dans le système d'exploitation MS-DOS, il est possible de taper uniquement cd.. en omettant l'espace qui les sépare, ce qui peut être déroutant pour les habitués de MS-DOS se trouvant devant un shell Unix.

Notes et références

[modifier | modifier le code]
  1. ↑ (en-US) coreyp-at-msft, « cd », sur docs.microsoft.com (consulté le 16 mars 2018)
  2. ↑ « How to use the cd command, by The Linux Information Project (LINFO) », sur www.linfo.org (consulté le 16 mars 2018)
  3. ↑ https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa500/cd.htm

Sur les autres projets Wikimedia :

  • cd sous DOS, sur Wikibooks
v · m
Commandes DOS et Windows
Système de fichiers (basique)
  • attrib
  • cd ou chdir
  • copy
  • del
  • deltree
  • dir
  • erase
  • expand
  • fdisk
  • format
  • makecab
  • md
  • mem
  • mklink
  • mountvol
  • move
  • nlsfunc
  • ntbackup
  • rd
  • ren
  • rename
  • rmdir
  • robocopy
  • sfc
  • sys
  • type
  • wbadmin
  • xcopy
Système de fichiers (avancé)
  • assoc
  • cacls
  • chkdsk
  • chkntfs
  • cipher
  • comp
  • compact
  • convert
  • defrag
  • diskcomp
  • diskcopy
  • diskpart
  • diskperf
  • fc
  • fixboot
  • fixmbr
  • fsutil
  • ftype
  • icacls
  • label
  • mscdex
  • recover
  • reg
  • regsvr32
  • replace
  • rsm
  • scandisk
  • subst
  • sys
  • tree
  • verify
  • vol
  • vssadmin
Processus
  • at
  • exit
  • schtasks
  • start
  • sc
  • shutdown
  • taskkill
  • tasklist
  • tlist
  • typeperf
Environnement utilisateur
  • append
  • chcp
  • cls
  • color
  • date
  • eventtriggers
  • eventcreate
  • finger
  • graftabl
  • mode
  • path
  • pnputil
  • popd
  • pushd
  • runas
  • set
  • setver
  • setx
  • systeminfo
  • time
  • title
  • ver
  • wevtutil
  • whoami
  • winsat
Manipulation de texte
  • EDIT
  • EDLIN
  • keyb
  • more
  • sort
Programmation shell
  • break
  • call
  • cmd
  • command
  • cscript
  • doskey
  • echo
  • endlocal
  • for
  • goto
  • if
  • pause
  • powershell
  • prompt
  • rem
  • setlocal
  • shift
  • forfiles
  • choice
Réseau
  • arp
  • atmadm
  • bitsadmin
  • cmstp
  • diskperf
  • dnscmd
  • eventcreate
  • ftp
  • getmac
  • hostname
  • ipconfig
  • IPv6
  • jview
  • nbtstat
  • net
  • netsh
  • netstat
  • nslookup
  • pathping
  • ping
  • rcp
  • rexec
  • route
  • rpcping
  • rsh
  • tcmsetup
  • telnet
  • tftp
  • tracert
Recherche
  • find
  • findstr
  • where
Aide
  • bcdedit
  • bootcfg
  • clip
  • help
  • print
  • debug
  • exe2bin
  • lpq
  • lpr
  • msiexec
  • pentnt
  • w32tm
  • wmic
v · m
Commandes Unix
Aide
  • uname
  • apropos
  • help
  • file
  • history
  • info
  • man
  • type
  • whatis
Environnement utilisateur
  • env
  • dmesg
  • finger
  • halt
  • id
  • init
  • logname
  • mesg
  • passwd
  • reboot
  • shutdown
  • su
  • sudo
  • talk
  • uptime
  • w
  • wall
  • who
  • whoami
  • write
Gestion de processus
  • at
  • bg
  • chroot
  • crontab
  • disown
  • exit
  • fg
  • htop
  • iowait
  • jobs
  • kill
  • nice
  • nohup
  • pkill
  • ps
  • pstree
  • sleep
  • time
  • top
Manipulation de texte
  • awk (gawk)
  • banner
  • bash
  • cat
  • clear
  • cut
  • diff
  • ed
  • ex
  • head
  • join
  • nl
  • paste
  • patch
  • read
  • sed
  • sort
  • strings
  • tail
  • tee
  • tr
  • uniq
  • vi
  • vim
  • wc
Programmation shell
  • alias
  • basename
  • dirname
  • echo
  • expr
  • false
  • printf
  • set
  • test
  • true
  • unset
  • wait
Recherche
  • find
  • grep
  • locate
  • whereis
  • which
Réseau
  • cURL
  • ethtool
  • ftp
  • host
  • ifconfig
  • mail
  • mailx
  • mii-tool
  • nc
  • netstat
  • ping
  • rlogin
  • ssh
  • sftp
  • telnet
  • traceroute
  • wget
Système de fichiers
  • cd
  • chgrp
  • chmod
  • chown
  • cp
  • dd
  • df
  • dir
  • du
  • file
  • less
  • ln
  • ls
  • lsof
  • mkdir
  • more
  • mount
  • mv
  • pwd
  • rm
  • rmdir
  • split
  • touch
  • tree
  • umask
  • umount
Divers
  • bc
  • dc
  • cal
  • date
  • fc
  • lp
  • lpr
  • md5sum
  • icône décorative Portail de l’informatique
Ce document provient de « https://fr.wikipedia.org/w/index.php?title=Cd_(commande)&oldid=186450380 ».
Catégories :
  • Commande MS-DOS/Windows
  • Commande Unix
  • OS/2
Catégories cachées :
  • Page utilisant P31
  • Article utilisant une Infobox
  • Portail:Informatique/Articles liés
  • Portail:Technologies/Articles liés

  • indonesia
  • Polski
  • الرية
  • Deutsch
  • English
  • Español
  • Français
  • Italiano
  • مصر
  • Nederlands
  • 本語
  • Português
  • Sinugboanong Binisaya
  • Svenska
  • Українска
  • Tiếng Việt
  • Winaray
  • 中文
  • Русски
Sunting pranala
Pusat Layanan

UNIVERSITAS TEKNOKRAT INDONESIA | ASEAN's Best Private University
Jl. ZA. Pagar Alam No.9 -11, Labuhan Ratu, Kec. Kedaton, Kota Bandar Lampung, Lampung 35132
Phone: (0721) 702022
Email: pmb@teknokrat.ac.id