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
teknopedia

teknopedia

teknopedia

teknopedia

teknopedia

teknopedia
teknopedia
teknopedia
teknopedia
teknopedia
teknopedia
  • Registerasi
  • Brosur UTI
  • Kip Scholarship Information
  • Performance
  1. Weltenzyklopädie
  2. pwd (Unix) - Teknopedia
pwd (Unix) - Teknopedia

pwd (abbreviazione dalla lingua inglese di print working directory, stampa la directory corrente) è un comando dei sistemi operativi Unix e Unix-like, e più in generale dei sistemi POSIX[1], che mostra sullo standard output il pathname assoluto della directory corrente.

Sintassi

[modifica | modifica wikitesto]

La sintassi generale di pwd è la seguente:

pwd [opzioni]

Tra le opzioni vi sono:

-L
usa il valore della variabile d'ambiente PWD ma solo se nelle componenti del pathname assoluto in esso indicato non sono usate le directory speciali "." e "..".
-P
risolve eventuali collegamenti simbolici presenti nelle componenti del pathname assoluto.

La versione GNU di pwd non supporta le opzioni -L e -P[2], ma occorre tener presente che in tali sistemi viene in realtà eseguito l'omonimo comando interno della shell testuale, che invece supporta tali opzioni[3].

Esempi

[modifica | modifica wikitesto]

Mostra il pathname assoluto della directory corrente:

$ pwd
/home/utente/documenti

Mostra il pathname assoluto della directory corrente, evitando di indicare collegamenti simbolici (documenti era un collegamento simbolico a doc):

$ pwd -P
/home/utente/doc

Note

[modifica | modifica wikitesto]
  1. ↑ (EN) pwd, in The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition. URL consultato l'08-01-2009.
  2. ↑ (EN) pwd: Print working directory, in GNU Coreutils manual. URL consultato l'08-01-2009.
  3. ↑ (EN) Bourne shell builtins, in Bash Reference Manual. URL consultato l'08-01-2009.

Voci correlate

[modifica | modifica wikitesto]
  • directory
  • directory corrente
  • cd (Unix)
  • Shell (informatica)
  • Unix
  • Unix-like
V · D · M
Programmi Unix/Unix-like con interfaccia a riga di comando e comandi interni della shell unix
File systemcat · cd · chattr · chmod · chown · chgrp · cksum · cmp · cp · du · df · fdisk · file · fsck · fuser · gzip · ln · ls · lsattr · lsof · mkdir · mknod · mount · mv · pwd · rm · rmdir · split · tar · touch · umount · umask
Processiat · chroot · crontab · exit · kill · killall · nice · nohup · pgrep · pidof · pkill · ps · pstree · sleep · time · top · wait
Ambiente utentealias · env · export · finger · id · logname · mesg · newgrp · passwd · su · sudo · uname · uptime · w · wall · who · whoami · write
Elaborazione testoawk · comm · cut · diff · ed · ex · fmt · head · iconv · join · less · more · paste · sed · sort · tail · tr · uniq · vi · wc · xargs
Script di shellbasename · dirname · echo · expr · false · printf · test · true · unset
Retedig · nslookup · ifconfig · netstat · ping · rcp · rlogin · route · netcat · traceroute
Ricerchefind · grep · strings
Amministrazionedmesg · groupadd · groupdel · groupmod · mdadm · shutdown · useradd · userdel · usermod
Altribanner · bc · cal · clear · date · dd · lp · man · size · tee · tput · yes
  Portale Informatica: accedi alle voci di Teknopedia che trattano di informatica
Estratto da "https://it.wikipedia.org/w/index.php?title=Pwd_(Unix)&oldid=119994444"

  • Indonesia
  • English
  • Français
  • 日本語
  • Deutsch
  • Italiano
  • Español
  • Русский
  • فارسی
  • Polski
  • 中文
  • Nederlands
  • Português
  • العربية
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