Tag Info

New answers tagged


I define this function inside my .bashrc to retrieve the public ip and dns: export PUBLIC_DNS=`curl 2>/dev/null` export PUBLIC_IP=`curl 2>/dev/null` function get-pub() { if [ $# -ne 1 ]; then echo "Invalid number of arguments" return ...


You may use VSFTP instead of SFTP, in VSFTP you can customize your root dir without any change in the /etc/passwd. If you modified in the passwd file, it will also affect when login. If you got permission denied when change your home dir to /, you need to check the permission of / first. Make sure others have read permission like below: # ls -ld / ...

Top 50 recent answers are included