Category Archives: Linux

Archiving

TAR extract:

 

TAR extract and view files (add v):

 

TAR extract and view files (add v) to different directory

 

TAR create and exclude upload folder:

 

TAR create:

 

TAR create and view (add v):

 

TAR create using ZIP compression:

 

TAR create using BZIP2 compression:

 

TAR create using 7zip compression (7z must exist):

 

7Zip extract archive created with the above command

 

7Zip extract

 

7Zip create fast compression, multivolume 1GB archive on different disk

 

Zip create fast compression, multivolume 1GB archive on different disk

SELinux

Enforce policy:
Edit selinux configuration:

Make sure the following settings are:

 

Install semanage tool:
Find a package that contains semanage:

For example:

will install semanage

Change default SSH Port to 777:
Run semanage tool:

Configure sshd to use port 777 and restart ssh deamon:

If SELinux is not configured, secure log will display error: Bind to port 777 on  0.0.0.0 failed: Permission denied.