Working with XZ (Lossless Data Compression) Tool in Linux

XZ is another general purpose data compression tool with command line syntax similar to gzip and bzip2. xz compresses or decompresses each file according to the selected operation mode. It supports different formats to compress or decompress files. XZ Command Examples in Linux To create a compressed file you just need to use -z or…

Working with 7zip compression tool on Linux

7-Zip is a file archiver with a high compression ratio. It is free software with open source.You can use 7-Zip on any computer, including a computer in a commercial organization. You don’t need to register or pay for 7-Zip. 7-zip support multiple formats including:Packing and Unpacking for 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM …

File Compression & Decompression on Linux

One of the basic file operation performed while working on Linux is file compression and decompression. Compression reduces the size of the file depending on the type of the file. Reduced file size helps when moving files between different servers or also If you want to free some of your hard disk. Here I have…

Managing file and Directory Permissions in Linux

Permission are crucial part of every system. After creating files and directories you need to set the proper permissions on file and directories so that they can be accessed by required users/groups. In Linux permissions are managed by chmod and chown commands. Permission in Linux In Linux there are Following three basic Permissions: ReadWriteExecute While…

Understanding Linux directory structure

Everything is so organized in Linux but when one don’t know the use and purpose of different directories in Linux it becomes messy. Following is a brief on different directories that are present in Linux and what they are used for. / :  is the parent directory for all the other present directories in Linux….

Vim basic Commands / file operations

Edit a file with vim open the file with vim filename Go to Insert mode press “i” Update the file content. Press ESC then write :wq to save and quit the editor Copy or Cut and Paste a Line in Vim Bring your cursor to the line you want to copy Press yy and line…

Editing / Saving a file with Vim editor on Linux

Vim is one of the best text editor on Linux Vim works with different modes such as visual, Insert, select, command line and Ex-mode. Following are the details on how you can perform different file operations with Vim. Editing a file with Vim Editor # vim /etc/hosts As soon as you open an image with…