Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

The top command is a Linux command that displays real-time information about your computer’s processes. This information includes how much CPU and memory each process is using. The top command is very helpful when you want to troubleshoot problems with your computer or optimize its performance. While there are many different top commands that can be used on Linux, the most common are ps, netstat, lsof, vmstat, and htop. These top commands can be used to view information about your computer’s processes, view information about your computer’s network connections, view information about open files and the processes that are using…

Read More

The Linux date command displays the current date and time of the system. While writing the shell scripts, I realise that sometimes we are required to find future dates—for example, dates after 10 days, 2 months, or 1 year, etc. The date command provides an option to display the future dates as described. -d, –date=STRING display time described by STRING, not ‘now’ Let’s understand this with some examples: Display current date: Simply type “date” to display the current date and time of system. date Thu Sep 22 03:58:36 UTC 2022 Date after 10 days: What will be the date after…

Read More

The pathlib module offers classes representing filesystem paths with semantics appropriate for different operating systems. We can create nested directory structure suing pathlib.Path.mkdir function in Python. On Linux:

On Windows:

Here: parents=True: instruct to create parent directories if not available. exist_ok=True: Do not throw an error if a directory already exists. Execute the above Python script and checked for the newly created directory tree. /dir1 └── dir2 └── dir3

Read More

As a beginner in Linux, you may have noticed that some files and directories in your file system are not visible when using the standard “ls” command. These files and directories are known as hidden files and are prefixed with a dot (.) character. In this guide, we will take a closer look at hidden files in Linux and how to manipulate them. First, it’s important to understand that hidden files are not a special type of file in Linux. They are simply regular files and directories that have been given a special name to make them hidden. The dot…

Read More

The Python virtual environment provides a command “deactivate” to go back to normal. Once the virtualenv is activated, you simply run the below command to deactivate the environment and get the original shell back. deactivate In the case of using “Anaconda” run the following command to deactivate the conda environment. conda deactivate Reference: https://docs.python.org/3/library/venv.html

Read More

Environment variables are a way to store values on the local machine (the one running the program). For example, you can store a user ID that would be used for logging in to a system. You can also use environment variables to store configuration settings like the name of a database connection. When setting environment variables, it is important to consider the security implications. If an attacker is able to access your environment variables, they could gain access to sensitive information such as your username and password. Therefore, it is important to keep your environment variable names secure. Those new…

Read More

Getting an SSL certificate for your website is important to keep your data safe and make visitors trust your site. Let’s Encrypt offers a free and easy way to get these certificates. Certbot is a tool that helps you get an SSL certificate from Let’s Encrypt without much hassle. In this guide, we’ll show you, step-by-step, how to use Certbot to get an SSL certificate. This guide is for everyone, even if you’re not very tech-savvy. By following these easy steps, you can secure your website and make it more trustworthy for your visitors. Step 1: Installing Certbot Most Linux…

Read More

Apache Maven stands as a cornerstone in the world of Java programming, streamlining the build process and managing project dependencies with unparalleled efficiency. Central to its functionality is the concept of repositories—storage spaces where project libraries, plugins, and other artifacts are stored. Among these, the local repository is pivotal, serving as the first port of call for Maven when it seeks an artifact. This article delves into the intricacies of locating your local Maven repository, an essential step for understanding and troubleshooting Maven-based projects. Understanding Maven Repositories Before we embark on the quest to locate the local repository, it’s imperative…

Read More

A terminal is the command line interface (CLI) for the macOS. That takes only commands as input and is sent to the operating system. The default font size is good enough, but some people require to increase in font size for better visibility. You can increase or decrease the terminal font size via terminal preferences. Launch a terminal on your system. Then open in the menubar: Terminal >> Preferences A new dialog box will open with the terminal profile editor. Here you can change the terminal theme, background color or image, cursor, font, and font size. Click change button as…

Read More

If you use macOS, you probably use Apple-built apps like Pages, Numbers, and Keynote for word processing, spreadsheets, and presentations. These are great programs with a lot of functionality and ease of use. They’re also not free. You can only get them through the Mac App Store. But if you have to meet a budget or just prefer open source software instead of closed source programs, you might want to look at alternatives. However, there are many great free word processing programs available that are similar to Word, such as Google Docs or Microsoft Office online. Unfortunately, they’re all Windows-only…

Read More