Tag: Linux

  • How to delete a directory in Linux

    How to delete a directory in Linux

    To delete a directory in Linux in a desktop environment is easy as pressing the Del / Delete key. To delete a directory in Linux using command line CLI in Terminal or SSH you can use the rm command. The bellow works fine for a file. A directory cannot be removed just like that. The…

  • How to create a user in Linux

    How to create a user in Linux

    Creating a user in Linux Terminal The useradd command will create the user and usermod can modify user properties such as groups the user is part of. useradd [options] username Example:  Using default options to create username dragos. Also created the user home directory: /home/dragos A group is also created for the user with the…

  • How to exit VIM – VI Editor

    How to exit VIM – VI Editor

    How to exit VIM or VI editor. VIM stands for Vi IMproved. As in a better editor than VI. You can start Vim at any terminal or in a SSH session on Linux with this command: Same goes for vi commands, opens a file the same way. Once vim / vi is opened you are…

  • How to parse and read XML log files CLI Linux

    How to parse and read XML log files CLI Linux

    How to parse and read XML log files in CLI Linux – multiple files with multiple tags. Applications can log as xml and you might need to read those log files.These files can be later processed by a log aggregator application. A simple command to monitor the latest entries in your logs across multiple files.You…

  • Rocky Linux vs Centos vs Oracle Linux

    Rocky Linux vs Centos vs Oracle Linux

    Since Centos 8 and Centos Stream came out, I’ve been looking for an alternative Linux operating system for our small web-server. The OS could be Debian based but I would prefer it if it’s RHEL based since I’m used to that. What to choose between Rocky Linux vs Oracle vs RHEL vs Centos Stream now.…