Содержание
- 2. ls --group-directories-first /var/log ls -lah /usr/bin “ctrl +shift + = увеличить шрифт” “ctrl + - уменьшить”
- 3. ~ представляет вашу домашнюю директорию ls ls -l ls (команды не запоминаются)
- 4. ls -l Do hit tab двойной tab покажет вам список из чего можно выбрать, то что
- 5. ls -l Do hit tab двойной tab покажет вам список из чего можно выбрать, то что
- 6. ctrl + a курсор в начало команды ctrl + e в конец ctrl + левая\правая стрелка
- 7. cd - change directory cd Doc hit tab pwd показывает где вы сейчас находитесь cd Exercise
- 8. cp - copy cp poems.txt poems2.txt cp simple_data.txt departments/hr/employee\ info/ mv poems2.txt department/marketing mv department/marketing/poems2.txt departments/marketing/literature.txt
- 9. * - любое количество символов ? - один из символов rm literature.txt (навсегда) cp poems.txt poems3.txt
- 10. rm -r departments/customerservice find . -name "poe*" find . -name "do*" find . -name "d*" find
- 11. change permissions- chmod octal notations - 755, 777, 644 read -4 write -2 execute -1
- 12. change permissions- chmod symbolic - : removes permission + : adds permission = : adds permission
- 13. change permissions- chmod symbolic - : removes permission + : adds permission = : adds permission
- 14. 777 = a+rwx 755 = u+rwx, g=rx, o=rx 644 = u=rw, g=r, o=r 700 = u=rwx,
- 15. 777 = a+rwx 755 = u+rwx, g=rx, o=rx 644 = u=rw, g=r, o=r 700 = u=rwx,
- 16. chmod 644 test.sh chmod a-x test.sh ./test.sh - > permissions denied bash test.sh cat test.sh clear
- 17. when user creates a file in the home directory it has 644 permissions touch newfile.txt ls
- 18. in CL we use pipes to take output of one command and send it to another
- 19. head poems.txt -> first 10 lines tail poems.txt -> last 10 lines -n option head -n
- 20. grep "the" poems.txt grep -n "the" poems.txt grep -i "the" poems.txt grep -vi "the" poems.txt grep
- 21. grep "the" poems.txt grep -n "the" poems.txt grep -i "the" poems.txt grep -vi "the" poems.txt grep
- 22. cat simple_data.txt awk '{print $2}' simple_data.txt awk '{print $2 "\t" $1}' simple_data.txt | sort -n Name
- 23. cat simple_data.txt sed s/Orange/Red/ simple_data.txt (subs) cat simple_data.txt sort simple_data.txt cat dupes.txt sort -u dupes.txt rev
- 24. tar -cvf myarchive.tar Exercise\ Files/ tar -caf myarchive.tar.gz Exercise\ Files/ tar -caf myarchive.tar.bz2 Exercise\ Files/ mkdir
- 25. ls 1>filelist.txt cat filelist.txt ls > filelist2.txt echo "and some appended text" >>filelist2.txt sudo apt-get update
- 26. cat auth.log | grep "input_userauth_request" | awk '{print $9}' | sort -u >> users.txt
- 27. Что такое Git? Следит за изменениями в файлах и папках Особенно за изменениями в тексте Система
- 28. Что такое Git?
- 29. Как установить Git на Linux? https://git-scm.com/download/linux which git git --version
- 30. Настройка Git на Linux? System User home .gitconfig Project my_project/.git/gitconfig git config --system git config --global
- 31. Настройка Git на Linux? git config --global user.name “Your name” git config --global user.email “Your email”
- 32. Настройка Git на Linux? git config --global core.editor “nano” git config --global color.ui true curl -0l
- 33. Инициализация репозитория git init Initialized empty git repository
- 35. Скачать презентацию