hutch


{ City } hyderabad
< Country > india
* Profession * network administrator
User No # 8013
Total Questions Posted # 0
Total Answers Posted # 18

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 680
Users Marked my Answers as Wrong # 183
Answers / { hutch }

Question { 51046 }

How many Layers in Network Layer ?


Answer

Network Layer are 7
1.Physical Layer
2.Data Link Layer
3.Network Layer
4.Transport Layer
5.Session Layer
6.Presentation Layer
7.Application Layer

Is This Answer Correct ?    101 Yes 33 No

Question { 9860 }

How to recover a deleted file in linux ?


Answer

single user mode
#init 1
#grep -b 'search-text' /dev/partition > file.txt
To recover text file starting with "nixCraft" word on
/dev/sda1 you can try following command:
# grep -i -a -B10 -A100 'nixCraft' /dev/sda1 > file.txt

Next use vi to see file.txt. This method is ONLY useful if
deleted file is text file. If you are using ext2 file
system, try out recover command. .

Is This Answer Correct ?    1 Yes 0 No


Question { 8634 }

linux file defaults permition


Answer

umask value = 022
Without a umask in effect,any file created will have 666
permissions.

666
022
---------
644
---------
A umask of 022 will result in files created with 666 permission.

Is This Answer Correct ?    15 Yes 0 No

Prev    1    [2]