How to use wc, fgrep and cal commands

Introduction: wc Command for (Count Number of Lines, Words, and Characters) In Linux operating systems, the wc command allows you to count the number of lines, words, characters, and bytes of each given file or standard input and print the result. wc stands for word count. As the name implies, it is mainly used for counting purpose. It is used to find …

How to use some more monitor system resources such vmstat, netstat part2

1- Nethogs   In your network connection seems saturated and you are unsure which application is the culprit, a program called “nethogs” is a good choice for finding out. On Ubuntu, you can install nethogs with the following command: Command: sudo apt-get install nethogs Output: We can run it by simply typing: Command: sudo nethogs Output: …

How To Use Some Monitor Server Resources such as top, htop Part:1

Introduction: To perform computer system for proper administration and monitoring. How to monitor system Processes. top One of the most common tools to check the resource utilization of processes is “top“. Command: top Output: The top portion has some system statistics, including load averages for last 1 minute, 5 minutes, and 15 minutes. It also shows memory and swap usage and count of …

How to use rm and rmdir utilities to remove or delete files and directories in Linux

Introduction: Use sudo with rm command for those files which are having root user and group permissions or if getting message  Access Denied. Sudo rm text2.txt rm text.txt How to delete a files and directory in linux In Linux operating system if needs to delete directory use following commands: rmdir command – removes empty directories/folders rm command – removes a directory/folder along with all the …

What is chattr attribute and how it use to make files undeletable or immutable

Introduction: Most of the time Linux based Operating system machine is used by different users. So there are high chances that the users will access a common set of files. This practice will cause of problems like accidental deletion or modification of important files. There is an existing command – chattr – that’s developed to help you in specifically these kinds of …