Pario TechnoBlob
About
Posts
Tag: sort
My 10 most used linux commands
This is a oneliner bash command to determine my 10 most used linux commands according to my history file history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a]...
Allow NFS through iptables
This is one way to determine the ports needed to open in your iptables rules to get NFS to work properly. First we need to determine the ports NFS uses rpcinfo -p | awk -F...
Query RPM database/packages and list their architecture
If you use the –queryformat argument with rpm it is possible to query RPMs for different architectures installed# rpm -qa --queryformat %{NAME}-%{VERSION}-%{ARCH}\n | grep...
Sort IP address
Sorting IP addresses using sort is not easy because the dot confuses sort. This line makes it possible to sort by the whole value of the address sort -n -t . -k 1,1 -k 2,2 -k...
««
«
1
2
3
»
»»