Q) How to check the multiple NIC in Unix or linux? (NIC NETWORK INTERFACE CARD)
A) ifconfig -a
Q) How to identify and kill a process ID?
A) ps -ef
Q) How will you Check Application Status ?
A) ps -ef |grep appservername ( from AdminConsole ------> Enterprise Applications )
Q) How will you Check the Port Status ?
A) using netstat command
Q) What information you get with command ps -ef |grep httpd ?
A) We get all Web Servers information with Process ID
Q) To repeat a Command continuously ?
A) netstat -a| grep
Q) How to Check Physical Memory RAM in the System ?
A) bootinf-r Will give you Physical Memory details of Unix Box.
Q) If we want to see the last 7 days data which command we have to use ?
A)Find /home -atime +7
Q) To find file in last 2 months (60 days) you need to use ?
A) -mtime +60 means you are looking for a file modified 60 days ago.
-mtime -60 means less than 60 days.
-mtime 60 If you skip + or - it means exactly 60 days.
Q) search for just files that have been modified in the last seven days ?
A) find . -mtime -7 -type -f
Q) search for just directories that have been modified in the last seven days ?
A) find . -mtime -7 -type -d
Q) you want to search the "/tmp" directory instead of the current directory for files modified in the last three days ?
A) find /tmp -mtime -3 -type -d
Q) find a file or directory that has been modified in the last seven days ?
A) find . -mtime -7
A) ifconfig -a
Q) How to identify and kill a process ID?
A) ps -ef
Q) How will you Check Application Status ?
A) ps -ef |grep appservername ( from AdminConsole ------> Enterprise Applications )
Q) How will you Check the Port Status ?
A) using netstat command
Q) What information you get with command ps -ef |grep httpd ?
A) We get all Web Servers information with Process ID
Q) To repeat a Command continuously ?
A) netstat -a| grep
Q) How to Check Physical Memory RAM in the System ?
A) bootinf-r Will give you Physical Memory details of Unix Box.
Q) If we want to see the last 7 days data which command we have to use ?
A)Find /home -atime +7
- -atime +7: All files that were last accessed more than 7 days ago
- -atime 7: All files that were last accessed exactly 7 days ago
- -atime -7: All files that were last accessed less than7 days ago
Q) Display list of all files in /home directory that were not last modified less than then days ago.
A) find /home -mtime -7
Q) To find file in last 2 months (60 days) you need to use ?
A) -mtime +60 means you are looking for a file modified 60 days ago.
-mtime -60 means less than 60 days.
-mtime 60 If you skip + or - it means exactly 60 days.
Q) search for just files that have been modified in the last seven days ?
A) find . -mtime -7 -type -f
Q) search for just directories that have been modified in the last seven days ?
A) find . -mtime -7 -type -d
Q) you want to search the "/tmp" directory instead of the current directory for files modified in the last three days ?
A) find /tmp -mtime -3 -type -d
Q) find a file or directory that has been modified in the last seven days ?
A) find . -mtime -7
No comments:
Post a Comment