If you need to compress a text document you can use;
This will convert the txt file to "textfile.gz".
To view a gz file you can use; $zcat
To view diffes between two files we can use;
$diff file1 file2 - in the output of this command < will view the diffes in file1 &
> will view the diffes in file2
$find . -name "*.txt" -print ;
This command will find for the file name with ".txt" and print the file path. And also note the "." after the command. It meens the find is running on current directory and in all other sub-directories.
Compiling source code
First create a directory in homedirectory to store the program. Use mkdir command for it.
Then go inside the directory and type;
It will set the instalation path to your destination.
This will make the excecutable files
After that we should check the excecutable is working properly. To do that;
$make install - to install the program.
It will run the program.