I know about Everything is a file (Wikipedia). While I was playing around with file permissions, I've wondered if it's possible to change a directory file type into a plain regular file type.
eg:
mkdir directory
and touch file
will show something like this:
drwxr-xr-x 2 user group 4096 Aug 18 22:26 directory
-rw-r--r-- 1 user group 0 Aug 18 22:26 file
Is it possible in the linux (or unix) world to convert directory
into file
. In other words, remove the prefixing d
in drwxr-xr-x
?