Skip to main content

Posts

Showing posts from May, 2019

Sublime

1. Accessing remote files in sublime ssh -R 52698:localhost:52698 root@192.xxx.xxx.xxx => run this command in local  root@192.xxx.xxx.xxx  - it is the target remote ip from where you are referring the file to edit in local Install remote sublime at remote server curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate sudo chmod +x /usr/local/bin/rmate rmate filename

Linux/Unix useful commands

Find count of files in a folder ls -l /san1/home/ports/Quest/QuestHL7incoming/new/prod/comite_part1_2xx/ | wc -l Enable/Disable firewall CentOS V < 7 service iptables list service iptables start service iptables stop CentOS V >= 7 Status: systemctl status firewalld   Start: systemctl start firewalld   Stop: systemctl stop firewalld   Login to a server without password run  ssh-keygen from source machine will create key stored at  ~/.ssh/id_rsa.pub copy the code alone and paste in the destination server > autorised_keys  /root/.ssh/authorized_keys => if not exists in the destination server, you can create it