$ ssh-keygen -t rsa -b 2048 -C "email@example.com"
$ ssh-keygen -f ~/.ssh/id_rsa.pub -m PEM -e
input-file.txt
and base64 encode it for sharing.$ openssl dgst -sha256 -sign ~/.ssh/id_rsa input-file.txt | base64 > signb64.txt
Alternatively
$ openssl dgst -sha256 -sign ~/.ssh/id_rsa -out sign.sha256 input-file.txt
$ openssl base64 -in sign.sha256 -out <signature>
$ dircolors -p > ~/.dircolors
OTHER_WRITABLE 32;40 # dir that is other-writable (o+w) and not sticky
Ref: https://unix.stackexchange.com/questions/94498/what-causes-this-green-background-in-ls-output
------------------------------------------ | |
set echo off | |
set serveroutput on | |
set timing off | |
set pages 25 | |
column VAR_NAME format a50; | |
column VAR_TEXT_VALUE format a75; | |
column VAR_NUM_VALUE format 9999999999; | |
column TIMESTAMP format a33; |
$ git config --global merge.tool bc3
$ git config --global mergetool.bc3.path /bin/bcompare
1. Generate the up to date grub configuration | |
$ grub2-mkconfig -o /boot/grub2/grub.cfg | |
2. Get the boot sequence of the kernels in the grub configuration | |
$ grep '^menuentry' /boot/grub2/grub.cfg | |
This will show the sequence in which the kernels are displayed |