ls -lt command

ls -lt command ls -lt: Sorting the Formatted listing by time modification Usages: # ls -lt Output: total 160 drwxr-xr-x 2 root root 4096 Oct 22 2019 test2 -rw-r–r– 1 root root 5142 Oct 3 2019 ps1.txt -rw-r–r– 1 root root 4893 Sep 23 2019 test2.php drwxr-xr-x 2 root root 4096 Sep 13 2019 ivr -rw-r–r– 1 root … Read more

ls -al command

ls -al command ls -al : Formatted listing with hidden files. Usages: # ls -al Output list of all directories or files in the current directory. This also includes hidden files. # ls -al /root Output list of all directories or files in the /root directory. This also includes hidden files.

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