dd if=/dev/zero of=/dev/null bs=512 count=4096 >& file
> name
>! name
>& name
>&! name
The file name is used as standard output. If the file does not
exist then it is created; if the file exists, it is truncated,
its previous contents being lost.
If the shell variable noclobber is set, then the file must not
exist or be a character special file (e.g., a terminal or
`/dev/null') or an error results. This helps prevent
accidental destruction of files. In this case the `!' forms
can be used to suppress this check. If notempty is given in
noclobber, `>' is allowed on empty files; if ask is set, an
interacive confirmation is presented, rather than an error.
The forms involving `&' route the diagnostic output into the
specified file as well as the standard output. name is
expanded in the same way as `<' input filenames are.
If you use the bourne shell style output redirectionand what do you mean by "ambiguous"?
2>&1 > file
on csh(1) you get an Ambiguous output redirect
message.dice@williscorto:~ % echo $SHELL
/bin/tcsh
dice@williscorto:~ % echo some test 2>&1 > test
Ambiguous output redirect.
> file1 > file2
, so you get two redirections of stdout to different files. Hence the ambiguity.root@mfsbsd:~ # diskinfo -v ada0
ada0
512 # sectorsize
17179869184 # mediasize in bytes (16G)
33554432 # mediasize in sectors
0 # stripesize
0 # stripeoffset
33288 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
VBOX HARDDISK # Disk descr.
VB9cefb55e-f72b70cf # Disk ident.
No # TRIM/UNMAP support
Unknown # Rotation rate in RPM
Not_Zoned # Zone Mode
It's a virtual disk (VBOX HARDDISK). Same as https://forums.freebsd.org/threads/identify-type-of-disk.79137/#post-497251But getting same result which is rotation rate is unknown. any reason?