Linux from the command line - using the uptime command
You can use uptime to get information about your system and how long it's been running etc.
Note that not all versions of uptime support all of the options in this article. For example the version that comes with GNU coreutils does not support any options.
https://www.howtoforge.com/linux-uptime-command/
Wednesday, 3 January 2018
Linux from the command line - Using uniq to find and remove duplicate information from files
Linux from the command line - Using uniq to find and remove duplicate information from files
This is yet another great Linux/UNIX tool that's especially handy in scripts and for processing logs etc.
https://www.ostechnix.com/uniq-command-tutorial-examples-beginners/
This is yet another great Linux/UNIX tool that's especially handy in scripts and for processing logs etc.
https://www.ostechnix.com/uniq-command-tutorial-examples-beginners/
Detecting rogue processes and their ports in Linux
Detecting rogue processes and their ports in Linux
Contrary to popular belief, Linux is not impervious to malware. Yes, it is highly resistant, but there's always one method of entry for malware that works on every platform. The user. Social engineering and phishing scams etc. can all trick users into bypassing the otherwise excellent security model that Linux uses. And of course as long as bugs and stack overflows and the like exist, there are automated ways into the system.
However it gets there, one way to find malware is to look for processes and ports that don't belong to known processes and are hidden from normal view.
https://www.cyberciti.biz/tips/linux-unix-windows-find-hidden-processes-tcp-udp-ports.html
Contrary to popular belief, Linux is not impervious to malware. Yes, it is highly resistant, but there's always one method of entry for malware that works on every platform. The user. Social engineering and phishing scams etc. can all trick users into bypassing the otherwise excellent security model that Linux uses. And of course as long as bugs and stack overflows and the like exist, there are automated ways into the system.
However it gets there, one way to find malware is to look for processes and ports that don't belong to known processes and are hidden from normal view.
https://www.cyberciti.biz/tips/linux-unix-windows-find-hidden-processes-tcp-udp-ports.html
Tuesday, 2 January 2018
Linux Tips & Tricks - using parallel in bash
Linux Tips & Tricks - using parallel in bash
So you got that fancy new umpteen core CPU, but what good is it when you run commands from the command line? Most often the answer is none, other than when compiling with -jn (where n = number of cores plus one).
However, with the "parallel" command, you can make it happen.
For OpenSuSE users, just go here and pick the one for your version of OpenSuSE.
https://software.opensuse.org/package/parallel
https://bash-prompt.net/guides/parallell-bash/
So you got that fancy new umpteen core CPU, but what good is it when you run commands from the command line? Most often the answer is none, other than when compiling with -jn (where n = number of cores plus one).
However, with the "parallel" command, you can make it happen.
For OpenSuSE users, just go here and pick the one for your version of OpenSuSE.
https://software.opensuse.org/package/parallel
https://bash-prompt.net/guides/parallell-bash/
Linux from the command line - getting IP info with whois
Linux from the command line - getting IP info with whois
Most people today that want to get info on a domain registry use a google search to find a domain registry lookup website. Linux users can do this simply and quickly from the command line.
https://www.tecmint.com/whois-command-get-domain-and-ip-address-information/#
Most people today that want to get info on a domain registry use a google search to find a domain registry lookup website. Linux users can do this simply and quickly from the command line.
https://www.tecmint.com/whois-command-get-domain-and-ip-address-information/#
Linux - Fixing time sync when dual booting with Windows
Linux - Fixing time sync when dual booting with Windows
I suggest using the second method and forcing Windows to do time the right way, though the Linux fix is of course easier.
https://www.maketecheasier.com/fix-windows-linux-show-different-times/
I suggest using the second method and forcing Windows to do time the right way, though the Linux fix is of course easier.
https://www.maketecheasier.com/fix-windows-linux-show-different-times/
Monday, 1 January 2018
Linux from the command line - the wonders of bash history
Linux from the command line - the wonders of bash history
This is a great reference for learning and exploring the power of the bash shell's history file.
I definitely recommend expanding the size of your history file, though I'm less enthusiastic in recommending messing with the history append setting. Also, even though they give the basic method for setting these things, you should read the manual for your Linux distribution and find the preferred way of setting these things for your distro.
https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps
This is a great reference for learning and exploring the power of the bash shell's history file.
I definitely recommend expanding the size of your history file, though I'm less enthusiastic in recommending messing with the history append setting. Also, even though they give the basic method for setting these things, you should read the manual for your Linux distribution and find the preferred way of setting these things for your distro.
https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps
Subscribe to:
Posts (Atom)