> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 5 0 10586 122
Alternatively, you can also use the Get-Host command:
> (get-host).version Major Minor Build Revision ----- ----- ----- -------- 5 0 10586 122
> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 5 0 10586 122
> (get-host).version Major Minor Build Revision ----- ----- ----- -------- 5 0 10586 122
$ hdiutil convert ~/dban-2.3.0_i586.iso -format UDRW -o ~/dban-2.3.0_i586.dmg Reading DBAN (Apple_ISO : 0)… ............................................................................. Elapsed Time: 1.172s Speed: 13.6Mbytes/sec Savings: 0.0% created: /Users/myaccount/src/os/dban-2.3.0_i586.dmg
$ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *250.1 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_HFS OS X 249.7 GB disk0s2 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme *17.4 MB disk1 1: Apple_partition_map 32.3 KB disk1s1 2: Apple_HFS Flash Player 17.4 MB disk1s2 /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme *18.1 MB disk2 1: Apple_partition_map 32.3 KB disk2s1 2: Apple_HFS Flash Player 18.1 MB disk2s2 /dev/disk3 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *8.0 GB disk3 1: DOS_FAT_32 UNTITLED 1 8.0 GB disk3s1
$ diskutil unmountDisk /dev/disk3 Unmount of all volumes on disk3 was successful
$ sudo dd if=dban-2.3.0_i586.dmg of=/dev/disk3 bs=1m Password: 15+1 records in 15+1 records out 16719872 bytes transferred in 6.551918 secs (2551905 bytes/sec)
$ diskutil eject /dev/disk3 Disk /dev/disk3 ejected
> Get-NetConnectionProfile Name : Network 2 InterfaceAlias : Integrated InterfaceIndex : 8 NetworkCategory : Public IPv4Connectivity : Internet IPv6Connectivity : NoTraffic
> Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private
$ echo "Hello world!" > ~/output.txt $ cat ~/output.txt Hello world!
$ echo "Hello again world!" >> ~/output.txt $ cat ~/output.txt Hello world! Helo again world!
$ echo "Hello world!" | tee ~/output.txt Hello world! $ cat ~/output.txt Hello world!
$ echo "Hello again world!" | tee -a ~/output.txt Hello again world! $ cat ~/output.txt Hello world! Helo again world!