Linux bash shell-scripting best practise and basic commands

Linux bash shell-scripting best practise and basic commands Sharing some notes from my studies! http://www.davidpashley.com/articles/writing-robust-shell-scripts/ http://www.tecmint.com/basic-shell-programming-part-ii/ Ubuntu - https://help.ubuntu.com/community/Repositories/CommandLine dns duck duck - https://www.duckdns.org/why.jsp https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/ http://unix.stackexchange.com/questions/227070/why-does-a-z-match-lowercase-letters-in-bash https://www.linuxtrainingacademy.com/linux-commands-cheat-sheet/ 1 – SYSTEM INFORMATION # Display Linux system information uname -a # Display kernel release information uname -r # Show which version of redhat installed cat /etc/redhat-release # Show how… Continue reading Linux bash shell-scripting best practise and basic commands

Cisco ASA Firewall troubleshooting show conn and the meaning of flags

Reminder of Cisco ASA Firewall troubleshooting "show conn" and the meaning of "flags", hands on work! If you are looking at the connections on the firewall, understanding the connection's flags is important to understand the status of the connections, specially if you are troubleshooting or want to confirm a connection. Cisco ASA firewall command "show… Continue reading Cisco ASA Firewall troubleshooting show conn and the meaning of flags

How many CPUs or Logical CPUs are on my MacOS ?

Antonio Feijao, FeijaoUK, Antonio Cloud, Antonio AWS, Cisco, Linux, Networking, Security

Check below to find the answer macOS:~$ sysctl hw.ncpu hw.ncpu: 4 Note that the number here might not match the number of cores with the command below macOS:~$ system_profiler SPHardwareDataType Hardware:     Hardware Overview:       Model Name: MacBook Pro       Model Identifier: MacBookPro12,1       Processor Name: Intel Core… Continue reading How many CPUs or Logical CPUs are on my MacOS ?

MacOS hardware stress test for CPU

Free MacOS CPU hardware stress test, with one line of command only! And it does not required sudo permissions to run for i in {1..8}; do `yes $i > /dev/null & `; done ; sleep 300 && killall yes && echo "CPU stress test completed" & sleep 300 -- is the controls for how long you want… Continue reading MacOS hardware stress test for CPU

MacOS Reset the System Management Controller (SMC) and NVRAM

MacOS Reset the System Management Controller (SMC) and NVRAM Check the sources pages for more details and how to do in other versions of MACs source reset SMC https://support.apple.com/en-ie/HT201295 source reset NVRAM https://support.apple.com/en-ie/HT204063   Reset the SMC on Mac notebook computers First, determine whether the battery is removable. Mac notebook computers that have a nonremovable battery include MacBook… Continue reading MacOS Reset the System Management Controller (SMC) and NVRAM

MacOS Startup key combinations

Startup key combinations for Mac source https://support.apple.com/en-gb/HT201255 Some Mac features are available by holding down certain keys during startup. Press and hold the keys immediately after you press the power button to turn on your Mac. Keep holding until the described behavior occurs. Hold during startup Description Shift (⇧) Start up in Safe Mode. Option (⌥) Start… Continue reading MacOS Startup key combinations

MacOS keyboard shortcuts

Mac keyboard shortcuts source * https://support.apple.com/en-ie/HT201236 By pressing a combination of keys, you can do things that normally need a mouse, trackpad, or other input device. To use a keyboard shortcut, hold down one or more modifier keys while pressing the last key of the shortcut. For example, to use the shortcut Command-C (copy), hold down… Continue reading MacOS keyboard shortcuts