Monday, 18 December 2017

Unix / Linux commands

The list of Unix/ Linux commands:

To list the file details:

          file -L /usr/lib/libpcap.so.1

Display all folders with used size:

          du -sh *

To know the Ubuntu version(Eg: 14.0):

          lsb_release -a

Convert Linux txt file into windows format:
          perl -p -e 's/\n/\r\n/' < test > dosfile3.txt

Empty the contents of a file:
          cp /dev/null <file Name to empty>


No comments:

Post a Comment