Reading content of a file using bash
The following code read the contents of a text file To read first five lines only Read five lines and then delete those lines
Simply Explaining Technology
The following code read the contents of a text file To read first five lines only Read five lines and then delete those lines
You often need to know the username of Apache to assign proper permissions to certain files it will be accessing. To find out: You will probably see multiple users. Ignore…
Linux is the most widely used variant of Unix. Linux is a very powerful operating system which has been around for more than 30 years. Initially, it was primarily been…
tar command The tar command is used to collate collections of files into one larger file. Creating archives Suppose we have directory xdir containing many files, we use the following…
Suppose I need to change the file extensions of certain files in a directory. The directory address specified by the user is read into the script in line 2. This…
Finding files on unix and linux Find is an extremely useful command for finding files. It searches based a specified condition at a specified directory and descends into all subdirectories…
yum stands for ‘Yellowdog Updater Modified’. YellowDog Linux is a rpm based distribution of Linux created for the ppc architecture. Fedora Core took up this package manager as of Fedora…
This error is caused if the size of your file is larger than the allowed filesize. Suppose the system has a limit of 1 Gb. If you tar and zip…
Newick Utilities is a very powerful and feature rich tool for displaying and manipulating phylogenetic trees. Installation Download Newick Utilities from Newick Utilities tar xzvf newick-utlis-x.tar.gz sudo mv newick-utils-x/src/nw* /usr/local/bin
To count lines of code in file: To count lines in all php files in a directory This command counts lines in all php files in a directory but ignore…