How do I lock a file in Linux?

Locking away personal files can be as easy as creating a ZIP/TAR/7Z/Etc archive file. To get started, open your Linux file manager, and navigate to the particular files you’re trying to encrypt. In the file manager, highlight the file (or folder), and right-click it. In the right-click menu, select “create archive”.
For More Information Please Refer:

You May Also Like to Read: