0% found this document useful (0 votes)
57 views

Restart Command Restart Forcible Open Port List Along With Service Display A Particular

This document contains a list of commands for restarting services, opening ports, displaying port lists, adding ports and services to firewalls permanently or temporarily, setting user limits, searching text in files, and monitoring resources and processes.

Uploaded by

Pranab Kumar Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Restart Command Restart Forcible Open Port List Along With Service Display A Particular

This document contains a list of commands for restarting services, opening ports, displaying port lists, adding ports and services to firewalls permanently or temporarily, setting user limits, searching text in files, and monitoring resources and processes.

Uploaded by

Pranab Kumar Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Command List

SL NO Discription Command
1 Restart command reboot
2 Restart forcible reboot -f
3 Open port list along with service lsof -i -P -n | grep LISTEN
4 Display a particular lsof -i:50000
5 To display Port list lsof -i -P -n | grep LISTEN
6 Port open permanently firewall-cmd --permanent --add-port=50000/tcp
firewall-cmd --reload
7 Port open for current session firewall-cmd --add-port=50000/tcp
firewall-cmd --reload
8 User list awk -F':' '{ print $1}' /etc/passwd
9 User uid and gid id root
10 Suse service add in firewall Firewall-cmd –permanent –add-
service={mountd,nfs,ssh}
11 /etc/security/limits.conf
SUSE nofile limit extend
Snote 2369910 @sapsys soft nofile 75000
@sapsys hard nofile 72000

12 Search text from multiple file find ./ -type f -name "*.txt" -exec grep 'Geek' {} \;
13 Search text from particular file find ./ -type f -name "keydb.xml" -exec grep 'error' {} \;
Resource monitor Vmstat 2
Top process Top i

You might also like