Basic Linux Tips
✨Simple way to change root's Home with environments
sudo su -
┌─[elliot@parrot]─[~]
└──╼ $whoami
elliot
┌─[elliot@parrot]─[~]
└──╼ $sudo su -
[sudo] password for elliot:
┌─[root@parrot]─[~]
└──╼ #whoami
root
┌─[root@parrot]─[~]
└──╼ #
✨Run/Installation
.run
chmod 755 FileName.run
./FileName.run
.sh
bash FileName.sh
.deb
dpkg -i FileName.deb
Open any file in it's default application
xdg-open <file_name>
✨Linux Permission types
sudo su -
┌─[elliot@parrot]─[~]
└──╼ $whoami
elliot
┌─[elliot@parrot]─[~]
└──╼ $sudo su -
[sudo] password for elliot:
┌─[root@parrot]─[~]
└──╼ #whoami
root
┌─[root@parrot]─[~]
└──╼ #
✨Run/Installation
.run
chmod 755 FileName.run
./FileName.run
.sh
bash FileName.sh
.deb
dpkg -i FileName.deb
Open any file in it's default application
xdg-open <file_name>
✨Linux Permission types
How to Create/Add a key in linux
gpg --full-gen-key //For Creating a key
gpg --import <Key_File> //Import key from file
gpg --list-secret-keys --keyid-format SHORT //Get Key ID
gpg --list-secret-keys --keyid-format SHORT //Get Key ID
gpg --edit-key <KEY_ID> //Edit Specific Key
gpg> trust //Add specific key to a trusted group
gpg --armor --export <KEY_ID> //To retrieve Public Key
gpg --armor --export <KEY_ID> //To retrieve Public Key