I switch user to root used su
. but i still couldnt cd /etc/group
but the group folder is in my /etc folder.
root@Desktop:/etc# cd group
bash: cd: group: Not a directory
I switch user to root used su
. but i still couldnt cd /etc/group
but the group folder is in my /etc folder.
root@Desktop:/etc# cd group
bash: cd: group: Not a directory
/etc/group
isn’t a folder, it’s a file:
cat /etc/group
It’s used to define groups and their memberships (locally).
If you examine /etc/group
with ls -l
, you’ll get something like
-rw-r--r-- 1 root root 2487 Sep 4 14:04 /etc/group
The leading -
means it’s a regular file; a folder (or directory) would have a leading d
. See Understanding UNIX permissions and file types for details.
NFS extended attribute
support, you could runrunat /etc/group
to get a shell with the current working directory set to/etc/group
– schily Sep 11 '21 at 10:40