Author: Dragos Ion

  • How to find a file in Linux

    How to find a file in Linux

    There are a few ways to find a file in Linux.  The most used way is in Terminal as this can become part of a script very easily and automate tasks on a Linux server. If you are using a desktop environment such as Gnome or Kde, the search for files is as simple as…

  • 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…

  • Linux commands cheat sheet the most used list

    Linux commands cheat sheet the most used list

    Most useful Linux commands for daily  # Display how long has the system been running – since tle last restart. # List directory contents # List files in directory but better attributes and human-readable # List files in directory sorted by file date/time. # Change directory  # Wildcards When filtering for files or directories you…

  • 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…

  • Find top visiting ip with Awk

    Find top visiting ip with AwkHow to find top visiting ip with Awk list in apache logs in CLI Linux. You can use the Awk programming language to extract the field you need from the Apache / Httpd access logs.Then you can chain multiple commands to have the desired output.You can also modify this to…

  • How to learn Python as a second language

    How to learn Python as a second language

    How to learn Python as a second language. After watching and reading few tutorials you still can’t say that you know much Python and that’s probably true. How I try to learn it, still work in progress, is to use a project-based approach. Learn the basics of the language. 1. No semicolons; 2. Indentation matters…

  • Random Password generator in Python

    Random Password generator in Python

    Random Password generator in Python How I wrote a random secure password generator in Python in 30 min. What I needed was a small script that I execute and generate a random password that is then copied to the clipboard and all I had to do was paste it Ctrl+V to use it. Every time…

  • Windows 11 nag screen after update

    Windows 11 nag screen after update

    Windows 11 nag screens after update.How to avoid the Windows 11 beta nag screen after updating. Windows 10 also had a nag scren afte updates were applied but on Windows 10 you could say remind me later and it would not bother you until the next major udate. Enter Windows 11, the remind me later…