Sunday, July 25, 2021

Write terminal output of a command to a file

           || visible in terminal || visible in file || existing

  Syntax  ||  StdOut  |  StdErr  ||  StdOut  |  StdErr  ||   file   
==========++==========+==========++==========+==========++===========
    >     ||    no    |   yes    ||   yes    |    no    || overwrite
    >>    ||    no    |   yes    ||   yes    |    no    ||  append
          ||          |          ||          |          ||
   2>     ||   yes    |    no    ||    no    |   yes    || overwrite
   2>>    ||   yes    |    no    ||    no    |   yes    ||  append
          ||          |          ||          |          ||
   &>     ||    no    |    no    ||   yes    |   yes    || overwrite
   &>>    ||    no    |    no    ||   yes    |   yes    ||  append
          ||          |          ||          |          ||
 | tee    ||   yes    |   yes    ||   yes    |    no    || overwrite
 | tee -a ||   yes    |   yes    ||   yes    |    no    ||  append
          ||          |          ||          |          ||
 n.e. (*) ||   yes    |   yes    ||    no    |   yes    || overwrite
 n.e. (*) ||   yes    |   yes    ||    no    |   yes    ||  append
          ||          |          ||          |          ||
|& tee    ||   yes    |   yes    ||   yes    |   yes    || overwrite
|& tee -a ||   yes    |   yes    ||   yes    |   yes    ||  append

Remove boot option in bios boot menu UEFI

user@PC:~$ sudo fdisk -l

[sudo] password for user: 

Disk /dev/nvme0n1: 238,49 GiB, 256060514304 bytes, 500118192 sectors

Disk model: TS256GMTE110S                           

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: gpt

Disk identifier: 6A76AEF7-D60C-4CA8-A4F2-9053CCDB5F29

Saturday, July 24, 2021

Thursday, July 22, 2021

No access to shared folders on Windows

No access to shared folders on Ubuntu from Windows

This works on Windows Vista, Windows 7, Windows 8.1 and Windows 10:

Go to Network and Sharing Center.

Change advanced sharing settings

All networks (at the bottom)

Turn off password protected sharing