dirname command

dirname Command dirname is mostly used in situations where you need to strip the last component from an absolute file name. used to remove the trailing forward slashes “/” from the NAME and prints the remaining portion. If the argument NAME does not contain the forward-slash “/” then it simply prints dot “.”. Example: # dirname /home/example/foo/ output: /home/example # dirname foo/file.txt output: foo … Read more

python installation on windows

python tutorial

python installation on windows Since windows don’t come with Python preinstalled, it needs to be installed explicitly. Here we will define step by step tutorial on How to install Python on Windows. Follow the steps below : Download Python Latest Version from python.org First and foremost step is to open a browser and open https://www.python.org/downloads/windows/ Here, … Read more

Introduction to python

python tutorial

Introduction to python What is Python? Python is a popular programming language. It was created by Guido van Rossum, and released in 1991. It is used for: web development (server-side), software development, mathematics, system scripting. What can Python do? Python can be used on a server to create web applications. Python can be used alongside … Read more

PHP connection_status() Function

php connection status

PHP connection_status() Function Example Return the connection satus: <?php switch (connection_status()) { case CONNECTION_NORMAL: $txt = ‘Connection is in a normal state’; break; case CONNECTION_ABORTED: $txt = ‘Connection aborted’; break; case CONNECTION_TIMEOUT: $txt = ‘Connection timed out’; break; case (CONNECTION_ABORTED & CONNECTION_TIMEOUT): $txt = ‘Connection aborted and timed out’; break; default: $txt = ‘Unknown’; break; } echo $txt; ?> Discuss if any issue or improvement on … Read more

How to get free SSL certificate

How to get the free SSL certificate Let’s Encrypt is a Certificate Authority (CA) that provides free certificates for Transport Layer Security (TLS) encryption, thereby enabling encrypted HTTPS on web servers. It simplifies the process of creation, validation, signing, installation, and renewal of certificates by providing a software client that automates most of the steps—Certbot. Here we … Read more

Understanding Hard link in Linux

Understanding Hard link in Linux The concept of a hard link is the most basic thing and here we will discuss it today. Every file on the Linux filesystem starts with a single hard link. What is the hard link? The link is between the filename and the actual data stored on the filesystem. Creating an additional … Read more

What is symbolic link, soft link or symlink

What is a symbolic link, soft link, or symlink A symbolic link (also known as a soft link or symlink) consists of a special type of file that references another file or directory. Unix/Linux-like operating systems often use symbolic links. Here we will see how to use the ln command to create symbolic/soft links. There … Read more

22 July today in history

22 July today in history 1678-Chhatrapati Shivaji Maharaj wins the fort of Vellore. 1981-India’s first geostationary satellite APPLE started functioning. 2012-Pranab Mukherjee was elected 13th President of India. 2019-India’s lunar mission, Chandrayaan-2 successfully takes off from Satish Dhawan Space Center, Sriharikota aiming to be the fourth nation to soft-land on the moon. 1988-Indian National Satellite … Read more

mysql is dead but subsys locked

mysql 5.7

MySQL is dead but subsys locked Issue Description: When tried to connect to MySQL or run any command. It Displayed The Following Error: Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock'(2) When checked the status of MySQL service from the below command: service mysqld status as a root user I got : mysql is dead … Read more