shutdown Command in Linux with Examples

This tutorial explains Linux “shutdown” command, options and its usage with examples. shutdown – brings the system down. You can shutdown the machine immediately, or schedule a shutdown using 24 hour format. Description: shutdown brings the system down in a secure way. All logged-in users are notified that the system is going down. It is … Read more

advertisement

reboot Command in Linux with Examples

This tutorial explains Linux “reboot” command, options and its usage with examples. reboot command is used to stop the system and then reboot it.(requires root privileges) Synopsis : reboot [-n] [-w] [-d] [-f] [-i] OPTIONS: -n Prevent the sync before reboot or halt. -w Don’t actually reboot or halt but only write the wtmp record … Read more

advertisement

halt Command in Linux

This tutorial explains Linux “halt” command, options and its usage with examples. halt command is used to stop the system.(requires root privileges) Description: halt command logs in the file /var/log/wtmp, and then either tells the kernel to halt. If halt is called when the system is not in runlevel 0 , in other words when … Read more

advertisement

5+ chkconfig Command Examples in Linux

This tutorial explains Linux “chkconfig” command, options and its usage with examples. chkconfig – check configuration Description : It updates and queries runlevel information for system services. Chkconfig command is used to setup, view, or change services that are configured to start automatically during the system startup. chkconfig has five distinct functions: adding new services … Read more

advertisement

badblocks Command in Linux with Examples

This tutorial explains Linux “badblocks” command, options and its usage with examples. badblocks – check bad blocks Description: badblocks is a Linux utility to check for bad sectors on a disk drive. It creates a list of these sectors that can be used with other programs, like mkfs, so that they are not used in … Read more

advertisement

5+ chgrp Command with Examples in Linux

This tutorial explains Linux “chgrp” command, options and its usage with examples. “chgrp” command is used to change group ownership of a file/directory. This post describes “chgrp” command used in Linux along with usage examples and/or output. All files in linux belong to an owner, and a group. The owner is set by the “chown” … Read more

advertisement

5 Practical chattr Command Examples in Linux

This tutorial explains Linux “chattr” command, options and its usage with examples. “chattr” command is used to change file attributes on a Linux file systemThis. This post describes “chattr” command used in Linux along with usage examples and/or output. “chattr” attribute is used to prevent accidentally delete of files and folder. You cannot delete the … Read more

advertisement

chroot Command in Linux with Examples

This tutorial explains Linux “chroot” command, options and its usage with examples. chroot – change root directory Description: A chroot command on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children.When you change root to another directory you cannot access files and commands outside … Read more

advertisement

tar Command in Linux with Examples

The tar command in Linux, which stands for ‘tape archive’, is an essential command for creating and managing archives. It was originally designed for use with tape drives but is now widely used for different purposes, such as making tar backups, sharing files, and compressing data. In this article, we will explore how to use … Read more

advertisement

cpio Command in Linux with Examples

This tutorial explains Linux “cpio” command, options and its usage with examples. cpio is a general file archiver utility and its associated file format. This post describes “cpio” command used in Linux along with usage examples and/or output. Its name is derived from the phrase “copy in and out”, in close description of the program’s … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.