WebFeb 2, 2024 · Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute. As you can see , chattr is more powerful than chmod. chmod -w removes only ' write ' permission to the file content. And also you need to use chattr +i to protect/lock the file then chattr -i to unlock. Share. WebApr 26, 2004 · First, you need to login as root user. Only root user can set and remove immutable flag on a file. The syntax is: chattr +i file chattr +i / path / to / filename. Type the following command to write protect /etc/shadow file on a Linux: # chattr +i /etc/shadow. Now, login as the normal user (say vivek) and type the passwd command to change …
The 40 Most-Used Linux Commands You Should Know - Kinsta®
WebApr 26, 2004 · First, you need to login as root user. Only root user can set and remove immutable flag on a file. The syntax is: chattr +i file chattr +i / path / to / filename. Type … WebFeb 21, 2024 · Display the first 10 lines of a file with head command: head [file_name] Show the last 10 lines of a file with tail command: tail [file_name] Encrypt a file: gpg -c [file_name] Decrypt a file: gpg … mern stack project ideas github
Linux Commands Cheat Sheet: Definitive List With …
WebWe can install pip with the easy_install command like below. Before pip easy_install was the standard package manager for the Python. ... Android, or Linux operating systems. Examplify works with most modern computers, both Mac and Windows operating systems. Students and exam-takers downloading the test-taking software, Examplify, should … WebFeb 1, 2024 · On Linux Handbook, we have covered over 80 Linux commands with practical examples. This is a collection of all the Linux commands we have covered so far. The commands have been organized in alphabetical order so that it is easy for you to find the commands from the index. A alias. The alias command is simply a way to reference … WebSep 18, 2024 · Many Linux commands accept a file as a parameter and take their data from that file. Most of these commands can also take input from a stream. To create a … how rare is this dog adopt me