How to determine which Linux distribution and kernel version you are running When connecting to a Linux server, we need to know the name of the running Linux distribution, its version number, and the kernel version number.This is often done to determine: Tags Linux Read more about How to determine which Linux distribution and kernel version you are running
How to compress and decompress files in Linux with ZIP To compress a directory in Linux you can use the zip command:zip -r output_file.zip folderYou can compress multiple directories too by adding the folders' names :zip -r output_file.zip folder1 folder2 folder3To decompress the zipped file, use the command unzip: Tags Linux Read more about How to compress and decompress files in Linux with ZIP
How to compress and extract TAR files in Linux To compress a directory in Linux, you can use the tar command:tar -zcvf file.tar.gz folderTo exclude a specific folder or files, use the –exclude= option with the folder name:tar -zcvf file.tar.gz –exclude='temp' –exclude='node_modules' folderTo decompress a file, use the -x option: Tags Linux Read more about How to compress and extract TAR files in Linux
How to get the size of directories in Linux To get information about the total and available space on the Linux file system, you can use the df command.dfThe df command displays information about all mounted filesystems, including total size, space used, percentage usage, and mount point: Tags Linux Read more about How to get the size of directories in Linux
How to find files that contain specific text in Linux To search for a specific text on a Linux system, the grep command can be used according to the following syntax:grep -iRl "text_to_search" ./The basic parameters are:i: ignore text case (uppercase or lowercase)R: search recursively in subfolders filesl: show file names instead of parts of the file contentsThe folder path to be searched is specified last. Tags Linux Read more about How to find files that contain specific text in Linux