-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pages.pl/sunos/*: add pages (#12730)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
- Loading branch information
1 parent
150f027
commit 318ae6c
Showing
9 changed files
with
186 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# devfsadm | ||
|
||
> Komenda administracyjna dla `/dev`. Zarz膮dza przestrzeni膮 nazw `/dev`. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/sunos/1m/devfsadm>. | ||
- Skanuj w poszukiwaniu nowych dysk贸w: | ||
|
||
`devfsadm -c disk` | ||
|
||
- Wyczy艣膰 wszystkie wisz膮ce linki /dev i skanuj w poszukiwaniu nowego urz膮dzenia: | ||
|
||
`devfsadm -C -v` | ||
|
||
- Pr贸bne uruchomienie - wypisz to, co zostanie zmienione, ale bez wprowadzania modyfikacji: | ||
|
||
`devfsadm -C -v -n` |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# dmesg | ||
|
||
> Wypisz komunikaty j膮dra do `stdout`. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/sunos/1m/dmesg>. | ||
- Wy艣wietl komunikaty j膮dra: | ||
|
||
`dmesg` | ||
|
||
- Poka偶 ilo艣膰 pami臋ci fizycznej dost臋pnej w systemie: | ||
|
||
`dmesg | grep -i memory` | ||
|
||
- Wy艣wietl komunikaty j膮dra po 1 stronie naraz: | ||
|
||
`dmesg | less` |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# prctl | ||
|
||
> Pobieraj lub ustawiaj kontrol臋 zasob贸w uruchomionych proces贸w, zada艅 i projekt贸w. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/sunos/1/prctl>. | ||
- Sprawd藕 limity proces贸w i uprawnienia: | ||
|
||
`prctl {{pid}}` | ||
|
||
- Sprawd藕 limity proces贸w i uprawnienia w formacie przetwarzalnym przez maszyn臋: | ||
|
||
`prctl -P {{pid}}` | ||
|
||
- Uzyskaj okre艣lony limit dla uruchomionego procesu: | ||
|
||
`prctl -n process.max-file-descriptor {{pid}}` |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# prstat | ||
|
||
> Raportuj statystyki aktywnego procesu. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/sunos/1m/prstat>. | ||
- Sprawd藕 wszystkie procesy i raportuj statystyki posortowane wed艂ug u偶ycia procesora: | ||
|
||
`prstat` | ||
|
||
- Sprawd藕 wszystkie procesy i raportuj statystyki posortowane wed艂ug u偶ycia pami臋ci: | ||
|
||
`prstat -s rss` | ||
|
||
- Raportuj podsumowanie ca艂kowitego u偶ycia dla ka偶dego u偶ytkownika: | ||
|
||
`prstat -t` | ||
|
||
- Raportuj informacje o pomiarach procesu mikrostanu: | ||
|
||
`prstat -m` | ||
|
||
- Wypisz 5 najbardziej obci膮偶aj膮cych procesor proces贸w co sekund臋: | ||
|
||
`prstat -c -n {{5}} -s cpu {{1}}` |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# snoop | ||
|
||
> Sniffer pakiet贸w sieciowych. | ||
> Odpowiednik tcpdump w systemie SunOS. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/sunos/1m/snoop>. | ||
- Przechwy膰 pakiety na okre艣lonym interfejsie sieciowym: | ||
|
||
`snoop -d {{e1000g0}}` | ||
|
||
- Zapisz przechwycone pakiety w pliku zamiast ich wy艣wietlania: | ||
|
||
`snoop -o {{艣cie偶ka/do/pliku}}` | ||
|
||
- Wy艣wietl szczeg贸艂owe podsumowanie warstwy protoko艂u pakiet贸w z pliku: | ||
|
||
`snoop -V -i {{艣cie偶ka/do/pliku}}` | ||
|
||
- Przechwy膰 pakiety sieciowe, kt贸re pochodz膮 z nazwy hosta i trafiaj膮 na dany port: | ||
|
||
`snoop to port {{port}} from host {{nazwa_hosta}}` | ||
|
||
- Przechwy膰 i wy艣wietl zrzut heksadecymalny pakiet贸w sieciowych wymienianych mi臋dzy dwoma adresami IP: | ||
|
||
`snoop -x0 -p4 {{ip1}} {{ip2}}` |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# svcadm | ||
|
||
> Manipuluj instancjami us艂ug. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/linux/1m/svcadm>. | ||
- W艂膮cz us艂ug臋 w bazie danych us艂ug: | ||
|
||
`svcadm enable {{nazwa_us艂ugi}}` | ||
|
||
- Wy艂膮cz us艂ug臋: | ||
|
||
`svcadm disable {{nazwa_us艂ugi}}` | ||
|
||
- Ponownie uruchom aktywn膮 us艂ug臋: | ||
|
||
`svcadm restart {{nazwa_us艂ugi}}` | ||
|
||
- Ponownie odczytaj pliki konfiguracyjne: | ||
|
||
`svcadm refresh {{nazwa_us艂ugi}}` | ||
|
||
- Usu艅 us艂ug臋 ze stanu konserwacji i j膮 uruchom: | ||
|
||
`svcadm clear {{nazwa_us艂ugi}}` |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# svccfg | ||
|
||
> Importuj, eksportuj i modyfikuj konfiguracj臋 us艂ug. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/linux/1m/svccfg>. | ||
- Sprawd藕 poprawno艣膰 pliku konfiguracyjnego: | ||
|
||
`svccfg validate {{艣cie偶ka/do/pliku_smf.xml}}` | ||
|
||
- Eksportuj konfiguracj臋 us艂ug do pliku: | ||
|
||
`svccfg export {{nazwa_us艂ugi}} > {{艣cie偶ka/do/pliku_smf.xml}}` | ||
|
||
- Importuj/aktualizuj konfiguracj臋 us艂ug z pliku: | ||
|
||
`svccfg import {{艣cie偶ka/do/pliku_smf.xml}}` |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# svcs | ||
|
||
> Wy艣wietl informacj臋 o uruchomionych us艂ugach. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/linux/1/svcs>. | ||
- Wy艣wietl wszystkie uruchomione us艂ugi: | ||
|
||
`svcs` | ||
|
||
- Wy艣wietl wszystkie us艂ugi, kt贸re nie s膮 uruchomione: | ||
|
||
`svcs -vx` | ||
|
||
- Wy艣wietl informacj臋 o us艂udze: | ||
|
||
`svcs apache` | ||
|
||
- Poka偶 lokalizacj臋 pliku dziennika us艂ugi: | ||
|
||
`svcs -L apache` | ||
|
||
- Wy艣wietl koniec pliku dziennika us艂ugi: | ||
|
||
`tail $(svcs -L apache)` |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# truss | ||
|
||
> Narz臋dzie do rozwi膮zywania problem贸w poprzez 艣ledzenie wywo艂a艅 systemowych. | ||
> Odpowiednik strace w SunOS. | ||
> Wi臋cej informacji: <https://www.unix.com/man-page/linux/1/truss>. | ||
- Rozpocznij 艣ledzenie programu, wykonuj膮c go i 艣ledz膮c wszystkie procesy potomne: | ||
|
||
`truss -f {{program}}` | ||
|
||
- Rozpocznij 艣ledzenie okre艣lonego procesu wed艂ug jego PID: | ||
|
||
`truss -p {{pid}}` | ||
|
||
- Rozpocznij 艣ledzenie programu, wykonuj膮c go, pokazuj膮c argumenty i zmienne 艣rodowiskowe: | ||
|
||
`truss -a -e {{program}}` | ||
|
||
- Zlicz czas, wywo艂ania i b艂臋dy dla ka偶dego wywo艂ania systemowego i raportuj podsumowanie po zako艅czeniu programu: | ||
|
||
`truss -c -p {{pid}}` | ||
|
||
- 艢led藕 proces filtruj膮c dane wyj艣ciowe wed艂ug wywo艂ania systemowego: | ||
|
||
`truss -p {{pid}} -t {{nazwa_wywolania_systemowego}}` |