Skip to content

Instantly share code, notes, and snippets.

@NeilRobbins
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeilRobbins/8937781 to your computer and use it in GitHub Desktop.
Save NeilRobbins/8937781 to your computer and use it in GitHub Desktop.
Useful linux commands
#==== change text file end-of-line from DOS (Windows) to Linux ====#
find . -name "*.sh" -exec sed -i 's/\r\+$//g' '{}' \;
#==== hardware/system info ====
numactl --hardware
dmesg
dmesg | grep -i numa
# perl script here: http://jcole.us/blog/files/numa-maps-summary.pl
#== which distro/version
cat /etc/*-release
uname -a
uname -mrs
cat /proc/version
#=== list processes ===
top
pstree
#=== Memory allocations ===
cat /proc/meminfo
free
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment