How to remove permissions from / etc/inittab by linux
Editor to share with you how linux will take out the permissions in / etc/inittab, I believe most people do not know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.
How to take out the permissions in / etc/inittab and print them in the form of the number 644
Method 1:stat / etc/inittab | sed-n '4p' | awk-F "[(/]"' {print $2} 'method 2:stat-c% a / etc/inittab method 3:ll / etc/passwd | cut-c 1-9 | tr rwx- 4210 | awk-F "{print $1", "2", "3 $4", "5"6 $7", "8"9}" are all the contents of the article "how to get permissions out of / etc/inittab". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!