UNIX


*) what do the following commands in UNIX do?
a) ls –ltr – displays all the files with their times and permissions.
b) vi – editor to view the files and make changes in it.
c) cp, mv, rm, mkdir, cat – cp is for copy, mv is for renaming the file, rm is for removing the file, mkdir is for creating directory, cat is for viewing the file and not making changes.
d) grep – used for searching patterns in a file or multiple files.
e) sort – u  - Is used for removing duplicates.
f) pwd – shows present working directory


1.       how do you rename a file?   mv file1 file2
2.       how do you copy a file?      cp file1 file2
3.       how do you create a file?   More filename or vi filename then save and quit.
4.       how do you move a file?    mv file1 newdirectory/file2
5.       how do you remove duplicates from a file?   Sort –u filename
6.       what does the sort option does?    It sorts the data and with option –u it removes duplicates

7.       what did you do in Perl /  shell scripting?
We used to add workflows into the perl scripts and those workflows use to start using pmcmd commands, there were predefined libraries for that. We use to schedule these perl scripts in Tivoli.