Unix Important Command
Unix Important Command
ln f1 f2; ln f1 f3
23 List attributes of the current directory [2022]
ls -l
24 To print the files in the current directory and one level down to the
current directory. [2022]
cd ..;ls
25 To locate all the lines where 1st and last characters are same. [2022]
grep '^a.*a$' f1
or
grep -E "^a.*a$" f1
26 Write a command using grep or sed or awk to display line 5 to 15, 25 to
35 and last line of file f1.[2021]