How to view a linux file?

What command can be used to view a list of directory hierarchies and the file system type in LINUX?

  • Answer:

    two commands come to mind 'df' and 'cat /etc/mtab' below is a sample output from both commands. $ df Filesystem 1K-blocks Used Available Use% Mounted on udev 10240 0 10240 0% /dev run 10240 176 10064 2% /run /dev/disk/by-label/ROOT 57677528 3742304 51005372 7% / shm 1480876 444 1480432 1% /dev/shm tmpfs 1480876 180 1480696 1% /tmp /dev/sda4 53865752 13954220 37175264 28% /home /dev/sda3 28834744 331048 27038972 2% /var /dev/sdb1 1453593628 956261900 424074872 70% /data $ cat /etc/mtab proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=369809,mode=755 0 0 run /run tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0 /dev/disk/by-label/ROOT / ext4 rw,commit=0 0 0 devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0 shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0 tmpfs /tmp tmpfs rw,nosuid,nodev 0 0 /dev/sda4 /home ext4 rw,commit=0 0 0 /dev/sda3 /var ext4 rw,commit=0 0 0 /dev/sdb1 /data ext4 rw,commit=0 0 0 rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0 nfsd /proc/fs/nfsd nfsd rw,noexec,nosuid,nodev 0 0 fusectl /sys/fs/fuse/connections fusectl rw 0 0 gvfs-fuse-daemon /home/XXXX/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=XXXX 0 0

community wiki at wiki.answers.com Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.