Get the App
SLTechnology News&Howtos  ›  Development  › 

How to remove permissions from / etc/inittab by linux

Shulou Source: shulou.com Published: 2022-06-01 03:46:08 09月22日 Update

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!

Tags: Permissions methods articles content not much most forms numbers more knowledge industry information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Technology Redmi Docker Shulou Information