4/6/2024 0 Comments Windows cmd tail equivalentA machine running Linux is under no obligation to provide any of those commands. “head”, “tail” and “less” are GNU tools, not “Linux” commands per se. type command used in Windows to view contents of the given file without modifying it. The type command is a Windows cat equivalent that works across a command-line prompt (cmd) and a Window’s PowerShell. While I’m here, I might as well mention the PS equivalent of “tail”: You can use windows cat equivalent type, gc and Get-Content cmdlets. If you want that, you’re probably better off using a version of less compiled for Windows, which you can find here. Nota che questo non include la caratteristica principale di less rispetto a "more", che è la capacità di andare indietro attraverso le pagine di un file che hai già guardato. Entrambi sono una scorciatoia per il comando PowerShell Get-Content. If you want to feel cool and Unix-y, you can use “cat” instead of “type”. Se puoi imparare a lasciare andare cmd e iniziare ad usare PowerShell (è stato incluso in Windows da quasi un decennio ormai smettila di rimandare), puoi fare questo per un equivalente "head":Īnd this for a “less” equivalent (first line is the long version the second uses an alias and a common PowerShell shortcut technique for parameters):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |