Use the file -s command on Linux to get information about a device

To get information about a device, such as its file system type:

If the output shows simply data, as in the following example output, there is no file system on the device and you must create one.

$ sudo file -s /dev/xvdf
/dev/xvdf: data

$ sudo file -s /mnt
/mnt: directory

Comments

Popular posts from this blog

Check MySQL query history from command line