command line

  1. Andy

    Rename Windows computer name from the command line

    For any reason, if you need to rename Windows computer name from the command line, here's the command: WMIC computersystem where name="%computername%" call rename name="NewComputerName" Example output:C:\WINDOWS\system32>WMIC computersystem where name="OldComputerName" call rename...
  2. Andy

    Create and extract a .tar.gz archive using command line

    To create a tar.gz archive from a given folder you can use the following command tar -zcvf tar-archive-name.tar.gz source-folder-name This will compress the contents of source-folder-name to a tar.gz archive named tar-archive-name.tar.gz To extract a tar.gz compressed archive you can use the...
Back
Top