mahendra swain


{ City } bangalore
< Country > india
* Profession * sr. engineer
User No # 43201
Total Questions Posted # 1
Total Answers Posted # 3

Total Answers Posted for My Questions # 2
Total Views for My Questions # 3811

Users Marked my Answers as Correct # 18
Users Marked my Answers as Wrong # 1
Questions / { mahendra swain }
Questions Answers Category Views Company eMail

Hi All, Q. I have one log file that log file contains application message but the application message in log file not append any date value. so after 1 to 2 date that file is big size , I want to delete contents only that was appended before 4 days ago from that single file and rest of the file contents would be remains same.

HP,

2 Solaris AllOther 3811




Answers / { mahendra swain }

Question { IBM, 10213 }

Why ls -F dev/log file output indicate as = sign at end of
the file name?


Answer

ls -F-----indicate the sign for identifing the directory as /,
like this = indicate socket file.

Is This Answer Correct ?    5 Yes 0 No

Question { 5210 }

What is the difference between a shell variable that is
exported and the one that is not exported?


Answer

When we export the variable that will available in subshell
If simply define variable that is only available in current shell.
Example: #var=20
#echo $var
20
If you invoke #sh i.e subshell of bash and try to print that unexported variable valu you will not get that.
sh-2.05b# echo $var-----it does not print the valu of var b'caz still it is in bash shell memory.
Just see the exported variable in shell
[root@dhcppc0 root]# export var1=30
[root@dhcppc0 root]# sh
sh-2.05b# echo $var1
30
I hope you will be enjoy it.

Is This Answer Correct ?    8 Yes 0 No


Question { BPO, 6827 }

if i run ls command it will show me the junk output what is
problem and how to resolve it


Answer

set your terminall setting by stty and before that export ls
command to PATH variable

Is This Answer Correct ?    5 Yes 1 No