YEMENDEVS Telegram 483
أوامر ستحتاج إليها عند التعامل المتكرر مع الخوادم (Servers)

(المنشور موجه للمبتدئين)


1) تحديث وترقية الحزم:
sudo apt update && sudo apt upgrade -y

2) تثبيت حزمة ما:
sudo apt install <PACKAGE_NAME>

3) إضافة يوزر ( مستخدم ) :
#syntax:
sudo adduser <USER>

#ex:
sudo adduser ajmal

4) حذف يوزر :
sudo deluser <USER>

5) إدارة الخدمات :

- بدء تشغيل خدمة:
#sx:
sudo systemctl start <S_NAME>

#ex:
sudo systemctl start apache2

- إيقاف تشغيل خدمة:
#sx:
sudo systemctl stop <S_NAME>

#ex:
sudo systemctl stop apache2

أيضاً إعادة تشغيل خدمة بنفس الصيغة مع تغيير العملية إلى restart
وعرض حالة خدمة مع تغيير العملية إلى status



5) عرض مساحة الDisk:
df -h

6) عرض استخدام الـ RAM:
free -h


-------أوامر إضافية-------

1) تغيير إصدار PHP في سطر الأوامر CLI:
sudo update-alternatives --config php

2) تغيير ملكية مسار ما لمستخدم محدد:
#sx:
sudo chown [OPTIONS] <USER>[:GROUP] <PATH>

#ex:
sudo chown -R www-data:www-data /var/www/html

3) منح صلاحيات محددة لمسار محدد (كن حذراً):
#sx:
sudo chmod [OPTIONS] <MODE> <PATH>

#ex:
sudo chmod -R 775 /var/www/html

4) الإتصال بقاعدة البيانات MySQL:
sudo mysql -u root -p

5) إعادة تشغيل النظام:
sudo reboot

6) إدارة العمليات :
ps aux
#or:
top

7) قتل عملية:
#sx:
sudo kill <PID>

#ex:
sudo kill 51433


بواسطة / مطورو اليمن - Yemen Devs :
https://www.tgoop.com/YemenDevs



tgoop.com/YemenDevs/483
Create:
Last Update:

أوامر ستحتاج إليها عند التعامل المتكرر مع الخوادم (Servers)

(المنشور موجه للمبتدئين)


1) تحديث وترقية الحزم:

sudo apt update && sudo apt upgrade -y

2) تثبيت حزمة ما:
sudo apt install <PACKAGE_NAME>

3) إضافة يوزر ( مستخدم ) :
#syntax:
sudo adduser <USER>

#ex:
sudo adduser ajmal

4) حذف يوزر :
sudo deluser <USER>

5) إدارة الخدمات :

- بدء تشغيل خدمة:
#sx:
sudo systemctl start <S_NAME>

#ex:
sudo systemctl start apache2

- إيقاف تشغيل خدمة:
#sx:
sudo systemctl stop <S_NAME>

#ex:
sudo systemctl stop apache2

أيضاً إعادة تشغيل خدمة بنفس الصيغة مع تغيير العملية إلى restart
وعرض حالة خدمة مع تغيير العملية إلى status



5) عرض مساحة الDisk:
df -h

6) عرض استخدام الـ RAM:
free -h


-------أوامر إضافية-------

1) تغيير إصدار PHP في سطر الأوامر CLI:
sudo update-alternatives --config php

2) تغيير ملكية مسار ما لمستخدم محدد:
#sx:
sudo chown [OPTIONS] <USER>[:GROUP] <PATH>

#ex:
sudo chown -R www-data:www-data /var/www/html

3) منح صلاحيات محددة لمسار محدد (كن حذراً):
#sx:
sudo chmod [OPTIONS] <MODE> <PATH>

#ex:
sudo chmod -R 775 /var/www/html

4) الإتصال بقاعدة البيانات MySQL:
sudo mysql -u root -p

5) إعادة تشغيل النظام:
sudo reboot

6) إدارة العمليات :
ps aux
#or:
top

7) قتل عملية:
#sx:
sudo kill <PID>

#ex:
sudo kill 51433


بواسطة / مطورو اليمن - Yemen Devs :
https://www.tgoop.com/YemenDevs

BY « Yemen Devs | يمن ديفز »


Share with your friend now:
tgoop.com/YemenDevs/483

View MORE
Open in Telegram


Telegram News

Date: |

Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. 6How to manage your Telegram channel? So far, more than a dozen different members have contributed to the group, posting voice notes of themselves screaming, yelling, groaning, and wailing in various pitches and rhythms. A new window will come up. Enter your channel name and bio. (See the character limits above.) Click “Create.” Just at this time, Bitcoin and the broader crypto market have dropped to new 2022 lows. The Bitcoin price has tanked 10 percent dropping to $20,000. On the other hand, the altcoin space is witnessing even more brutal correction. Bitcoin has dropped nearly 60 percent year-to-date and more than 70 percent since its all-time high in November 2021.
from us


Telegram « Yemen Devs | يمن ديفز »
FROM American