Linux Cheat Sheet

For a comprehensive course: https://linuxjourney.com


To update password without knowing the password


cat /etc/shadow | grep username

echo 'username:mdsum' | chpasswd -e

To remove first five characters using sed

sed 's/^.....//'

Add user kevins to secondary group named test

usermod -a -G test kevins
Ref: http://linux.101hacks.com/sysadmin-tasks/assign-new-group-to-use/http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/

Linux Perf Analysis in 60s

http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html

How do I determine ethernet connection speed?

ethtool eth0






rsync
https://www.howtogeek.com/135533/how-to-use-rsync-to-backup-your-data-on-linux/

 cron
 http://serverfault.com/questions/449651/why-is-my-crontab-not-working-and-how-can-i-troubleshoot-it
 http://www.nncron.ru/help/EN/working/cron-format.htm

account admin
https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/
http://www.golinuxhub.com/2014/08/how-to-check-lock-status-of-any-user.html
https://unix.stackexchange.com/questions/10852/whats-the-difference-between-sbin-nologin-and-bin-false

network issues
https://www.digitalocean.com/community/tutorials/how-to-use-traceroute-and-mtr-to-diagnose-network-issues

netstat
https://www.cyberciti.biz/faq/what-process-has-open-linux-port/

No comments:

Post a Comment