UFS chflags

A mention for ls(1) from chflags(1):
Code:
You can use "ls -lo" to see the flags of existing files.

ls(1)
Code:
     -l      (The lowercase letter “ell”.) List files in the long format, as
             described in the The Long Format subsection below.
     -o      Include the file flags in a long (-l) output.  This option is
             incompatible with IEEE Std 1003.1-2008 (“POSIX.1”).  See
             chflags(1) for a list of file flags and their meanings.
 
A mention for ls(1) from chflags(1):
Code:
You can use "ls -lo" to see the flags of existing files.

ls(1)
Code:
     -l      (The lowercase letter “ell”.) List files in the long format, as
             described in the The Long Format subsection below.
     -o      Include the file flags in a long (-l) output.  This option is
             incompatible with IEEE Std 1003.1-2008 (“POSIX.1”).  See
             chflags(1) for a list of file flags and their meanings.

Here is what I get:-

Code:
./fd:
total 1
dr-xr-xr-x   2 root wheel - 512 Jan 22 20:01 .
drwx-wxr-x  14 root wheel - 512 Jan 24 22:30 ..
cr-xr-xr-x   1 root wheel - 0x3 Jan 22 20:01 0
cr-xr-xr-x   1 root wheel - 0x4 Jan 22 20:01 1
cr-xr-xr-x   1 root wheel - 0xd Jan 22 20:01 10
cr-xr-xr-x   1 root wheel - 0xf Jan 22 20:01 12
cr-xr-xr-x   1 root wheel - 0x5 Jan 22 20:01 2
cr-xr-xr-x   1 root wheel - 0x6 Jan 22 20:01 3
cr-xr-xr-x   1 root wheel - 0x7 Jan 22 20:01 4
cr-xr-xr-x   1 root wheel - 0x8 Jan 22 20:01 5
cr-xr-xr-x   1 root wheel - 0x9 Jan 22 20:01 6


I'm trying to delete some files and think the chflags are set.
 
I think they don't seem to have anything set but a - instead? 🤔

Maybe try this?:
Code:
EXAMPLES
     Recursively clear all flags on files and directories contained within the
     foobar directory hierarchy:
           chflags -R 0 foobar
 
I think they don't seem to have anything set but a - instead? 🤔

Maybe try this?:
Code:
EXAMPLES
     Recursively clear all flags on files and directories contained within the
     foobar directory hierarchy:
           chflags -R 0 foobar
I've tried that but can't get rid of the files.

They are in a jail, which probably has some bearing but the jail is stopped.
 
any errors?

I couldn't figure out the problem so deleted the jail.

I'm trying to create an i386 jail but iocage is unable to do that so I have to clearout the contents of an existing jail and extract my chosen release of FreeBSD into it.
 
But then is the question , why use bastille or iocage. Just grab base.txz and untar. Your done.
Much the same argument could be made for bhyve. Why do you need a vm-assisitant when it is a one liner?
Before EFI booting you needed bhyveload but now its just one line.

I like bsdinstall for jails personally.
mkdir -p /jails/jail0
bsdinstall jail /jails/jail0
 
My plan bhyve & raw disks, must boot linux from freebsd.
[Virtualbox was not a success because of interaction with geom/exclusive ; & qemu is SLOW very SLOW ]
 
Here is what I get:-

Code:
./fd:
total 1
dr-xr-xr-x   2 root wheel - 512 Jan 22 20:01 .
drwx-wxr-x  14 root wheel - 512 Jan 24 22:30 ..
cr-xr-xr-x   1 root wheel - 0x3 Jan 22 20:01 0
cr-xr-xr-x   1 root wheel - 0x4 Jan 22 20:01 1
cr-xr-xr-x   1 root wheel - 0xd Jan 22 20:01 10
cr-xr-xr-x   1 root wheel - 0xf Jan 22 20:01 12
cr-xr-xr-x   1 root wheel - 0x5 Jan 22 20:01 2
cr-xr-xr-x   1 root wheel - 0x6 Jan 22 20:01 3
cr-xr-xr-x   1 root wheel - 0x7 Jan 22 20:01 4
cr-xr-xr-x   1 root wheel - 0x8 Jan 22 20:01 5
cr-xr-xr-x   1 root wheel - 0x9 Jan 22 20:01 6


I'm trying to delete some files and think the chflags are set.
Those files don't have any flags.
 
Back
Top