powercfg /batteryreport /output "%USERPROFILE%\battery_report_2.html" /duration 14
powercfg /energy
powercfg /batteryreport /output "%USERPROFILE%\battery_report_2.html" /duration 14
powercfg /energy
chmod 700 /home/[your-username]
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
ss
stands for "socket statistics", a CLI tool to display information about network sockets on a Linux or Unix-like OS.
ss
can be used to display:
Note: ss
is similar to netstat
, but it's generally faster and more efficient when dialing with large numbers of network connections
lsof
stands for list open files, a CLI tool to display infos about the files currently open by processes on a Unix or Unix-like OS.
lsof
can be used to identify which processes are using specific files, which files are being used by specific processes, which network connections are open.
-c NAME
: filter by process name or command name.
-u NAME
: filter by user name or user ID.
-a
: display all active connections, including those in LISTEN state
-n
: don't resolve names (display addresses and port numbers in numerical format, rather than resolving them to host and service names)
-p, --programs
: display PID/Program name for sockets.
-l, --listening
: display listening server sockets.