-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,115 @@ date: 2023-02-03T03:58:33+03:30 | |
draft: true | ||
--- | ||
|
||
<div dir='rtl'> | ||
|
||
### فهرست | ||
|
||
> - [مقدمه](#مقدمه) | ||
> - [ریستارت سیستم](#ریستارت-سیستم) | ||
> - [خاموش کردن سیستم](#خاموش-کردن-سیستم) | ||
> - [توقف سیستم](#توقف-سیستم) | ||
> - [خاموش یا ریستارت سریع سیستم](#خاموش-یا-ریستارت-سریع-سیستم) | ||
> - [ریستارت بدون ارسال پیام به کاربران](#ریستارت-سیستم-بدون-ارسال-پیام-به-کاربران) | ||
> - [Author or Authors](#author-or-authors) | ||
</div> | ||
|
||
--- | ||
|
||
<div dir='rtl'> | ||
|
||
### مقدمه | ||
|
||
|
||
ابزارها و دستور های زیادی برای خاموش کردن و ریستارت کردن سیستم وجود دارد که یکی از این ابزار ها reboot است که با استفاده از آن میتوان بدون استفاده از محیط گرافیکی سیستم را ریستارت یا خاموش کرد. | ||
</div> | ||
|
||
--- | ||
<div dir='rtl'> | ||
|
||
### ریستارت سیستم | ||
|
||
برای ریستارت سیستم تنها کافی است دستور reboot را اجرا کنید. | ||
|
||
```bash | ||
$ reboot | ||
``` | ||
|
||
</div> | ||
|
||
--- | ||
<div dir='rtl'> | ||
|
||
### خاموش کردن سیستم | ||
|
||
برای خاموش کردن سیستم با استفاده ا reboot میتوان از 'p\-' یا 'poweroff\--' استفاده کرد: | ||
|
||
```bash | ||
$ reboot -p | ||
or | ||
$ reboot --poweroff | ||
``` | ||
|
||
</div> | ||
|
||
<div dir='rtl'> | ||
|
||
--- | ||
### توقف سیستم | ||
|
||
توقف یا halt شدن سیستم حالتی است که در آن کل فعالیت های CPU متوقف میشود ولی همچنان سیستم روشن است. | ||
از این حالت میتوان برای تعمیرات سطح پایین (سخت افزار) استفاده کرد. | ||
|
||
برای توقف سیستم با دستور reboot میتوان از 'hlat\--' استفاده کرد: | ||
|
||
```bash | ||
$ reboot --halt | ||
``` | ||
</div> | ||
|
||
--- | ||
<div dir='rtl'> | ||
|
||
### خاموش یا ریستارت سریع سیستم | ||
|
||
با اجرای دستور زیر سیستم خیلی سریع خاموش, ریستارت یا halt میشود: | ||
|
||
|
||
```bash | ||
$ reboot -f | ||
OR | ||
$ reboot --fource | ||
``` | ||
|
||
{{< note >}} | ||
|
||
این دستور، دستوالعمل های که برای خاموش شدن امن (safe shutdown) تعریف شده اند را دور میزند. | ||
برای مثال در خاموش شدن عادی ابتدا فایلسیستم از سیستم جدا میشود(unmount) سپس سیستم خاموش میشود اما این دستور این کار را انجام نمیدهد و سیستم سریع حاموش میشود. | ||
|
||
{{< /note >}} | ||
|
||
|
||
</div> | ||
|
||
--- | ||
|
||
<div dir='rtl'> | ||
|
||
### ریستارت سیستم بدون ارسال پیام به کاربران | ||
|
||
وقتی سیستم خاموش یا ریستارت میشود یک پیام مرتبط به کاربرانی که به سیستم لاگین کرده اند ارسال میشود که با دستور زیر از آن جلوگیری کرد و بدون ارسال پیام به کاربران سیستم را خاموش کرد. | ||
|
||
```bash | ||
$ reboot --no-wall | ||
OR | ||
$ reboot -d | ||
``` | ||
</div> | ||
|
||
--- | ||
|
||
### Author or Authors | ||
|
||
- *[Mohsen](https://github.com/mammadnet)* | **<[email protected]>** | ||
|