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


NumberPermission TypeSymbol
0No Permission---
1Execute--x
2Write-w-
3Execute + Write-wx
4Readr--
5Read + Executer-x
6Read +Writerw-
7Read + Write +Executerwx



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 --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 

Popular posts from this blog

Information gathering - Website Links 😈

How to switch between different java versions on Linux