file – POFTUT

Tagged: file

0

How To Open Windows File Explorer In Different Ways like Shortcut, Command-line, GUI?

File Explorer is one of the most used tool or application on Windows operating systems.  File Explorer can be used to open file, directory, edit file, copy, paste etc. In this tutorial, we will learn how to open file explorer in different ways in different Windows operating systems like Windows 7, Windows 8, Windows 10, Windows Server 2008, Windows Server 2012, Windows Server 2016. Open File Explorer Keyboard Shortcut We...

0

How To Use PHP file() and readfile() Functions To Read PHP File?

PHP programming language provides file() and readfile() functions in order to read a file. In this tutorial, we will learn how to use file() and readfile() functions in order to read text or similar ASCII files like PHP files. file() Function and Syntax file() function has a very basic syntax where some of the parameters are optional.

PATH is used to specify the path and file name we want...

How To Remove or Delete A Directory In Linux? 0

How To Remove or Delete A Directory In Linux?

Linux provides different commands in order to remove or delete directories and files. But in some cases, this may not work as expected and we can get a message like rmdir: ‘dir’ Directory no empty which simply means when we try to delete a directory with rmdir command it is not completed. In this tutorial, we will learn how to remove and delete an empty or full directory. Remove with...

0

PHP Glob() Function To Match Path, Directory, File Names with Examples

glob is a general term used to define techniques to match specified pattern according to rules related Unix shell. Linux and Unix systems and shells also supports glob and also provide function glob() in system libraries. In this tutorial we will look glob() function usage in PHP programming language. Exact String Search We will start with a simple example. We will look how to match exact string or file name with a absolute...

0

How To Find and List Large Files and Directories In Linux?

One of the important job for System Administrators is finding and deleting large and unneeded files from Linux operating system. In this tutorial we will look how to find, sort and delete large and trash files from Linux distributions like Ubuntu, Debian, Mint, Fedora, CentOS and RHEL etc. Large Files Directories In Linux distributions there are some directories and paths where files generally holds a lot of disk space. These...

0

Linux Multipurpose Relay Socat Command Tutorial with Examples

Linux provides different philosophy and use cases from system point of view. socat is very interesting command which provides us the ability to redirect input and outputs from different type of system resources like network, file, command, socket etc. Install For Debian, Ubuntu, Mint and Kali socat can be install dpkg based distributions like below by using apt command.

Install For Fedora, CentOS, RHEL We can install for Fedora,...

0

How To Check If File Exists In Linux Bash?

Linux bash have different file and directory related functions to create, delete, change and check existence. In this tutorial we will look how to check a file or directory if it exists. Check File Existence We will use bash test mechanism. Bash test mechanism have two formats where we can use followings. test -f FILENAME [ -f FILENAME] Square brackets format is preferred in conditional usage like ifand switch ....

0

How To Linux Bash For Loop In Files?

Bash provides a lot of useful programming functionalities. for loop is one of the most useful of them. We can use for loop for iterative jobs. Linux system administrators generally use for loop to iterate over files and folder. In this tutorial, we will look at how to use for loop to iterate over files and directories in Linux. This example can be used any of Linux distribution which uses...

0

Linux Lsof Command Tutorial With Examples

Lsof is linux command used for output files and processes related information. lsof support different type of file formats like regular file, directory, block special file etc. lsof provides given command output parsable format where other tools like cut can be used to filter output. In this tutorial we will look different use cases of lsof command. In order to run lsof command without problem and full fledged mode we should provide root privileges. List Process...

2

Linux Ulimit Command Tutorial with Examples To Increase Open File Limit

Linux kernel provides some configuration about system related limits and maximums. These are like maximum file handler count, maximum file locks, maximum process count etc. These limits are used to stay in safe area and do not bottleneck system performance. But sometimes these limits should be decreased or increased. ulimit is used to change these limits and maximums. List All Limits There are different types of limits and maximum values used...

Enjoy this blog? Please spread the word :)