Posts

Showing posts from March, 2025

CAT Command

 -- show line numbers of the lines in a file cat -n <file_name> creating a file  cat > testing  enter content quite -- testing file is created Create a copy of the file cat StudentData > StudentData Merging two files and creating a new file. cat <file1> <file2>  > totaldata.txt append a content of a file to a existing file cat <file_name>   >>   <file_name> showing a file in reverse order  -- cat command now becomes tac  tac <file_name> list files  ls -ltr list all files in human readable format ls -ltrh display files ignoring blank lines cat -n -b <file_name> -b // skips blank lines head command to show only first 10 lines from a file head <file_name> first 10 line  display first 20 lines from a file head -n 20 <file_name> or head -20 <file_name> display 200 bytes of data from this file head -c <file_name> skip last 28 lines  head -n -28 l...