1.How to find out row count in a file?
A. wc -l filename
2. How to display first 5 lines?
A. head -5 filename
3.How to display last 5 rows?
A. tail -5 filename
4.How to copy files from once server to another sever?
scp filename username@servername:path
ex: scp abcd.txt computer@124.127.55: ETL\source\files
5.How to delete files
A. rm filename
6.How to diplay file?
A. cat filename
7.How to display zip file?
A. Zcat filename
8.How to unzip file?
A. gunzip filename
9.How to rename file?
A. mv oldfilename newfilename
Ex: mv abc.txt abcd.txt
10.How to display first 5 lines in zipfile?
A. zcat filename | head -5
11. How to display last 5 lines in zipfile?
A. zcat filename | tail -5
12. How to get the process id?
A. ps -ef | grep job(process id)
13.How to Kill the job?
A. kill -9 jobname
14. How to display list of fles(list revers order date)?
A. ls -lrt
A. wc -l filename
2. How to display first 5 lines?
A. head -5 filename
3.How to display last 5 rows?
A. tail -5 filename
4.How to copy files from once server to another sever?
scp filename username@servername:path
ex: scp abcd.txt computer@124.127.55: ETL\source\files
5.How to delete files
A. rm filename
6.How to diplay file?
A. cat filename
7.How to display zip file?
A. Zcat filename
8.How to unzip file?
A. gunzip filename
9.How to rename file?
A. mv oldfilename newfilename
Ex: mv abc.txt abcd.txt
10.How to display first 5 lines in zipfile?
A. zcat filename | head -5
11. How to display last 5 lines in zipfile?
A. zcat filename | tail -5
12. How to get the process id?
A. ps -ef | grep job(process id)
13.How to Kill the job?
A. kill -9 jobname
14. How to display list of fles(list revers order date)?
A. ls -lrt
No comments:
Post a Comment