Posts

Showing posts from March, 2026

15 поширених команд Linux (repost з ITEDU.center)

  У цій статті зібрали 15 поширених команд, які варто знати кожному сисадміну. Це не повний список можливостей Linux, але вони допоможуть моніторити систему, знаходити помилки й автоматизувати рутину. htop — зручний перегляд процесів у реальному часі Це вдосконалений варіант команди top, але з інтуїтивним інтерфейсом і можливістю управляти процесами безпосередньо. htop показує: навантаження на CPU та RAM у вигляді графіків; повну структуру процесів у вигляді дерева; можливість завершити процес без введення PID. lsof — перевірка відкритих файлів і портів lsof (List Open Files) дозволяє дізнатися, які процеси використовують конкретні файли або порти. Корисно, якщо порт уже зайнятий, і сервіс не стартує. lsof -i :80 Це допоможе зʼясувати, що саме використовує порт 80 — зазвичай вебсервер або інша мережева служба. journalctl — перегляд логів у системах із systemd Для Ubuntu 18.04+, CentOS 7+ та інших  дистрибутивів  із systemd ця команда — мастхев. Вона дозволяє: читати систе...

Git - merge investigation commands

1. How to find out if branch has been merged into your current branch 2. How to find out if your current branch has been merged into any other branch 1. To check if a feature or branch has been merged into your current branch , use the git branch --merged command, the git merge-base command, or inspect the git log.  Methods to Verify a Merge: 1. Using git branch --merged  This command lists all branches whose tips are reachable from your current branch's HEAD, meaning they are fully integrated.  First, ensure you are on the branch where you expect the feature to be merged (e.g., main): git checkout <current-branch-name> Then, run the command to list all merged branches: git branch --merged If the feature branch name appears in the output list, it has been merged into your current branch.  To see branches that have not been merged, you can use the --no-merged flag instead:  git branch --no-merged 2. Using git merge-base This method determines the common anc...