List all envirlonment variables
Editing the crontab
Editing the systemd service
To check all the systemd services on a Linux system
systemctl list-units --type=service
Checking the listening port
lsof -i tcp:8080
Change the hostname
- Open the terminal and enter the following command to edit the hosts file:
- In the hosts file, look for the line that contains the current hostname and edit it to the new hostname that you wish to use. Replace "old_hostname" with the current hostname and "new_hostname" with the new hostname you have chosen.
Change it to:
- Now, enter the following command to edit the hostname file:
Replace the old hostname with the new hostname that you have chosen, and then save and close the file.
Reboot your system using the following command:
To find the specify process
ps -ef grep | xxx
Start the ssh-agent
eval "$(ssh-agent -s)"
To add ssh private key
ssh-add xxxx ```