# Display Command Output or File Contents in Column Format in Linux

LinuxOperating SystemFile System

Sometimes there may be too many columns crammed into a single file. That makes it difficult to read the content of the file and point out which data belongs to which column. In order to have a better view, we ca use certain commands that will allocate space between the columns and also mark some separation characters that will make it clear to see the beginning and end of the column.

## Sample File

Lets’ look at the below sample file which we will use to demonstrate the column command. We can get the file from kaggle. here.

## Output

Running the above code gives us the following result −

## Mount Command

Another example is the mount command which is most often used by unix admins. The original result is not clearly legible, but we can make it columnar and nicely formatted.



## Output

Next we run it with the mount command.

Published on 14-Feb-2020 10:20:24