Redhat linux command cheat sheet

broken image

The examples above view the dnf (package management utility) and the operating system’s boot logs respectively.

broken image

You may need to prefix the command with ‘ sudo‘ if you are a non-root user. The ‘less’ command accepts the log filename as a parameter and then you can scroll through it using the ‘ page down‘ key. Less: If you need to view the contents of a log file at the command line in RedHat, you can use the ‘ less‘ command. Viewing RedHat Logs And Editing/Displaying Configuration Files Install or remove Software via the Command Line. In that case, you may need to prefix ‘sudo’ before your command.

broken image

I include short examples of the Linux commands and may include a brief comment here and there to clarify them.īefore continuing, if you get a ‘ permission denied‘ error, it is because you don’t have permission to do something. I tested the following commands on RedHat Enterprise Linux 8.0. I cannot guarantee that the commands in this article will work in all versions of RedHat.Īlso bear in mind that the structure of commands can change over time. If you’re just getting started with RedHat Enterprise Linux, then these commands can help you to get up to speed sooner! RedHat offers numerous commands that can be used across many Linux distributions and they can make life easier for you as a system adminsitrator, or a home PC user.

broken image