1)To display largest file in current directory.
->$ls -s|head -1
2)To display 5th line of file f1.
->$head -5 f1|tail -1
or
->$tail +5 f1|head -1
3)Remove a file name as x.
->$rm "x?"
or
->$rm x\?
4)Display last line of file f1.
->$tail -1 f1
5)To create a link between file1 and file2
->$cp -l file1 file2
0 comments:
Post a Comment