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. od (Unix) - Teknopedia
od (Unix) - Teknopedia
od
software
GenereUtility
SviluppatoreAT&T Bell Laboratories
Data prima versione3 novembre 1971
Sistema operativoMultipiattaforma
Licenza(licenza libera)
Modifica dati su Wikidata · Manuale

od è un comando presente su vari sistemi operativi per visualizzare ("scaricare") i dati in vari formati di output leggibili dall'uomo. Il nome è un acronimo di "octal dump" poiché per impostazione predefinita viene stampato nel formato dati ottale.

Panoramica

[modifica | modifica wikitesto]

Il comando od può visualizzare l'output in una varietà di formati, inclusi ottale, esadecimale, decimale e ASCII.

È utile per visualizzare dati che non sono in un formato leggibile dall'uomo, come il codice eseguibile di un programma, o dove la forma primaria è ambigua (ad esempio alcuni caratteri latini, greci e cirillici sembrano simili).

Il comando od è uno dei primi programmi Unix, apparso nella versione 1 AT&T Unix. È anche specificato negli standard POSIX. L'implementazione di od usata sui sistemi Linux è solitamente fornita da GNU Core Utilities.

Poiché precede la shell Bourne, la sua esistenza causa un'incoerenza nella sintassi del ciclo do. Altri cicli e blocchi logici vengono aperti dal nome e chiusi dal nome invertito, ad esempio if ... fi e case ... esac, tuttavia l'esistenza di od comporta la necessità di definire la chiusura del ciclo do con done, così: do ... done.

Il comando od è stato anche portato sul sistema operativo IBM i.[1]

Sessione di esempio

[modifica | modifica wikitesto]

Normalmente un dump di un file eseguibile è molto lungo. Il comando head stampa le prime righe dell'output. Ecco un esempio di dump del programma "Hello world", convogliato attraverso head.

% od hello | head
0000000 042577 043114 000401 000001 000000 000000 000000 000000
0000020 000002 000003 000001 000000 101400 004004 000064 000000
0000040 003610 000000 000000 000000 000064 000040 000006 000050
0000060 000033 000030 000006 000000 000064 000000 100064 004004
0000100 100064 004004 000300 000000 000300 000000 000005 000000
0000120 000004 000000 000003 000000 000364 000000 100364 004004
0000140 100364 004004 000023 000000 000023 000000 000004 000000
0000160 000001 000000 000001 000000 000000 000000 100000 004004
0000200 100000 004004 002121 000000 002121 000000 000005 000000
0000220 010000 000000 000001 000000 002124 000000 112124 004004

Ecco un esempio di od utilizzato per diagnosticare l'output di echo cui l'utente digita Ctrl+V+Ctrl+I e Ctrl+V+Ctrl+C dopo aver scritto "Hello" per inserire letteralmente una tabulazione e il carattere di controllo ^C:

% echo "Hello  ^C" | od -cb
0000000  H  e  l  l  o \t 003 \n
    110 145 154 154 157 011 003 012
0000010

Note

[modifica | modifica wikitesto]
  1. ↑ (EN) IBM, System i 7.2, Programming Qshell, su ibm.com, p. 104. URL consultato il 5 settembre 2020.

Voci correlate

[modifica | modifica wikitesto]
  • Editor esadecimale
  • Hexdump

Altri progetti

[modifica | modifica wikitesto]

Altri progetti

  • Wikibooks
  • Collabora a Wikibooks Wikibooks contiene testi o manuali su od

Collegamenti esterni

[modifica | modifica wikitesto]
  • od - Manpage di GNU Core Utilities, su gnu.org.
V · D · M
Programmi GNU Core Utilities con interfaccia a riga di comando
File systemchcon · chmod · chown · chgrp · cksum · cp · dd · df · dir · dircolors · install · ln · ls · mkdir · mkfifo · mknod · mktemp · mv · realpath · rm · rmdir · shred · sync · touch · truncate · vdir
Utilità testualib2sum · base32 · base64 · cat · cksum · comm · csplit · cut · expand · fmt · fold · head · join · md5sum · nl · numfmt · od · paste · ptx · pr · sha1sum · shuf · sort · split · sum · tac · tail · tr · tsort · unexpand · uniq · wc
Utilità della shellarch · basename · chroot · date · dirname · du · echo · env · expr · factor · false · groups · hostid · id · link · logname · nice · nohup · nproc · pathchk · pinky · printenv · printf · pwd · readlink · runcon · seq · sleep · stat · stdbuf · stty · tee · test · timeout · true · tty · uname · unlink · uptime · users · who · whoami · yes
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=Od_(Unix)&oldid=147749839"

  • 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