In this easy guide I will be showing you how to use the Linux date command. The date command can be used to see what the date is, what time it is, as-well as set system time (with root/sudo privileges). I will give a few examples as-well as explain the options below since you can format the output to get exactly the information you are looking for as-well as formatted the way you want it.
Today I will be showing you how to use the read command as-well as some read command examples.
One of the things you should do when first setting up your new server is changing the SSH port. This is not because it will actually stop a real attacker but because your server will be hammered with automated random login attempts, so the real reason why we will change the default ssh port is so that when the automated attacks can’t even connect to port 22 then usually it just stops and moves on to the next server. If you are using a cloud droplet or VPS that supports snapshots, now is the time to take one just incase you get locked out if something goes terribly wrong (never hurts to be safe!).
In this post I will be showing you how to use expect in your scripts as a command instead of as a script itself. This can be useful for automatically responding when running other commands and more.
In this quick post I will be showing you how to check your kernel version as-well as list your installed kernel versions. So lets begin by checking which kernel you are currently running.
Today I will be showing you how to manage your systems packages on Debian based systems including Ubuntu and Linux Mint using the apt/apt-get package manager.
Today I will be showing you how to switch between the different shells on your system. This includes both temporarily entering a different shell (sub shell) as-well as permanently setting a different shell with the csch command.
Today I will be showing you how to manage local user accounts and groups in Linux. This guide will not be including things such as LDAP but simply local users on your specific server or desktop.
In this post I will show you how to use bash redirection to write to a file using the cat command. This is a very simple trick that you can use for all sorts of things when it comes to bash scripting including setting up certain configuration files when more powerful options aren’t available or aren’t worth using. You can also use this in your bash scripts to create files from scratch if need be without having to have separate files or download them remotely.