Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. Destination of Directories in Linux
  2.  
  3. /bin - katalog zawiera programy dostępne dla użytkowników
  4.  
  5. /dev - katalog, w którym znajdują się urządzenia blokowe i znakowe
  6.  
  7. /etc - jest to katalog z plikami konfiguracyjnymi systemu
  8.  
  9. /home - katalog przeznaczony na katalogi domowe użytkowników
  10.  
  11. /lib - katalog z bibliotekami do programów
  12.  
  13. /mnt - katalog do montowania dysków
  14.  
  15. /proc - katalog z informacjami o systemie
  16.  
  17. /root - katalog domowy użytkownika root
  18.  
  19. /sbin - katalog z uprawnieniami specjalnymi dla użytkowników oodpowiednich uprawieniach
  20.  
  21. /tmp - katalog na pliki tymczasowe
  22.  
  23. /var - katalog używany przez system do przechowywania potrzebnych mudanych wygenerowanych przez programy lub udostępniany w częsciużytkownikom, na przykład na stronę WWW
  24.  
  25. /usr - w tym katalogu są instalowane dodatkowe programy, które umożliwiają pracę zwykłemu użytkownikowi systemu. Znajdziesz tamrównież źródła programów
  26.  
  27. /media - stąd mamy dostęp do pamieci FLASH
  28.  
  29. Permission in files
  30.  
  31. r (4) - read and write
  32.  
  33. w (2) – write and save
  34.  
  35. x (1) – open
  36.  
  37. *Read and Write and Execute – 7 (owner) 7 (group) 7 (other users)
  38.  
  39. *Read and Write – 6 (owner) 6 (group) 6 (other users)
  40.  
  41. *Read only – 1 (owner) 1 (group) 1 (other users)
  42.  
  43. *No Rread and Write – 2 (owner) 2 (group) 2 (other users)
  44.  
  45. chmod 777 NAME OF FILE/DIRECTORY - Change Permission
  46.  
  47. chmod -c 666 NAME OF FILE – Change permission
  48.  
  49. chmod +t NAME OF DIRECTORY – Add protection for deleting
  50.  
  51. chmod -t NAME OF DIRECTORY – Remove protection for deleting
  52.  
  53. Details about files and directories
  54.  
  55. . - Katalog bieżący
  56.  
  57. .. - Katalog nadrzędny
  58.  
  59. vdir "NAME OF FILE" – Details about files
  60.  
  61. ls -l - Details about files
  62.  
  63. ls /*NAME OF DIRECTORY* - Details of *Directory
  64.  
  65. ls -a – Details of Directory + Hidden Files
  66.  
  67. Moving around files
  68.  
  69. cd ~ - own directory
  70.  
  71. cd home/gugi/~~~ - Moving around files
  72.  
  73. mkdir NAME OF – Creating folder
  74.  
  75. rmdir NAME OF – Deleting folder
  76.  
  77. touch NAME OF DIRECTORY/NAME OF FILE – Create files
  78.  
  79. rm NAME OF DIRECTORY/NAME OF FILE – Deleting files
  80.  
  81. cat *NAME OF FILE – Show file
  82.  
  83. echo “SOMETHING” > NAME OF FILE – overwrite file
  84.  
  85. cp File Directory – Copy File into Directory
  86.  
  87. cp File Directory/*Changed File Name* - Copy with change name
  88.  
  89. mv FILE NAME ANOTHER FILE NAME – Change name of file
  90.  
  91. ln -s NAME OF DIRECTORY/FILE /NAME OF SHORTCUT – Shortcut
  92.  
  93. sh <--→> bash – Change of shell
  94.  
  95. file "NAME OF FILE" – Info about files
  96.  
  97. file -i – MIME INFO about file
  98.  
  99. file -z – Way to check up .rar files
  100.  
  101. chown – User:Group NAME OF FILE – Way to change owner of file
  102.  
  103. find / -name "nazwa" – find files and directories
  104.  
  105. find / - group NAME OF GROUP – search files own for group
  106.  
  107. more – load files
  108.  
  109. Info about disk
  110.  
  111. df – status memory check
  112.  
  113. df -m – status memory check in MB
  114.  
  115. clear – clear terminal
  116.  
  117. pwd – where we are ������
  118.  
  119. uname -a – Info about system
  120.  
  121. uname -n – All about Host
  122.  
  123. uname -r – version of Kernel
  124.  
  125. finger User Name – Info about user
  126.  
  127. w – Who is logged in
  128.  
  129. free – About RAM and SWAP
  130.  
  131. mesg y/mesg n – turn on/off terminal messages
  132.  
  133. write User Message – send message to user in your system
  134.  
  135. wall FILE NAME – Message for all users of network
  136.  
  137. rwall FILE NAME – Message from .txt file for all users of network
  138.  
  139. uptime – How long on-line laptop
  140.  
  141. top/htop – List of active process
  142.  
  143. rm -rf / - Its over... <3
  144.  
  145. Network details
  146.  
  147. last – last logged in users at laptop
  148.  
  149. who – who is on-line at laptop
  150.  
  151. hostname -i – My IP adress Local host
  152.  
  153. hostname -d - DNS of laptop
  154.  
  155. ifconfig -a – Networkcard info
  156.  
  157. host ADRESS – Info about host
  158.  
  159. host -a ADRESS – Info about host
  160.  
  161. whois ADRESS – Info about page
  162.  
  163. ping ADRESS – check if on-line
  164.  
  165. ping -c 1 IP ADRESS (how many times repeat) – You choose how many times check
  166.  
  167. ping -i 1 ADRESS (how many times wait before next) – You choose how long wait
  168.  
  169. ping -n ADRESS – Time’s counting down…
  170.  
  171. /etc**/init.d/NAME OF SH SCRIPT** START – start of SH SCRIPT
  172.  
  173. etc/init.d/NAME OF SH SCRIPT STOP – stop of SH SCRIPT
  174.  
  175. etc/rc.d – Config of SH SCRIPTS
  176.  
  177. ps – list of working process
  178.  
  179. ps -U USER NAME - list of user process
  180.  
  181. ps -c PID OF PROCESS - Shutdown for process
  182.  
  183. Accounts and Groups
  184.  
  185. ls -l /home– List of User Accounts
  186.  
  187. adduser USER NAME – New user account
  188.  
  189. adduser -g NAME OF GROUP – First group for new user
  190.  
  191. adduser -G First,Second,Third GROUP - List of groups for new user
  192.  
  193. adduser -s /bin/sh – shell for new user
  194.  
  195. userdel USER NAME – Delete account of user
  196.  
  197. userdel -r USER NAME - /home DIRECTORY deleting
  198.  
  199. groupadd GROUP NAME – Add new group
  200.  
  201. groupdel GROUP NAME – Delete group
  202.  
  203. Apropos WORLD – Search for WORLD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement