commands detail - l
The PowerShell equivalent of the Unix ls is:
… for which there are aliases dir, ls and gci
ls -a
So ls gives:
README.md
but ls -a gives
$ ls
Directory: C:\Users\matt\Documents\WindowsPowerShell\functions
---- ------------- ------ ----
-a--- 04/06/2015 13:20 1422 README.md
Directory: C:\Users\matt\Documents\WindowsPowerShell\functions
Mode LastWriteTime Length Name
---- ------------- ------ ----
d--h- 04/06/2015 13:20 .git
-a-h- 20/05/2015 17:33 12288 .function-prompt.ps1.swp
ls -ltr
The Powershell equivalent of the unix ls -ltr (or the DOS dir /OD), which
lists files last update order.
The unix command lsusb shows USB devices. The PowerShell equivalent is:
gwmi Win32_USBControllerDevice