Linux Commands Reference
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "run Linux commands", "manage users and permissions", "configure file systems", "work with LVM", "set up…
Об этом скилле
Linux Commands Reference
Purpose
Master essential Linux commands for system administration, security operations, and penetration testing. This skill covers user management, file permissions, disk management, LVM, networking, firewall configuration, security frameworks (SELinux/AppArmor), and task automation.
Prerequisites
Required Environment
- Linux system (Debian/Ubuntu or RHEL-based)
- Terminal access with appropriate privileges
- Root or sudo access for administrative tasks
Required Knowledge
- Basic command-line navigation
- Understanding of Linux file system hierarchy
- Familiarity with text editors (vim/nano)
Outputs and Deliverables
- System Administration Scripts - Automated user/group management
- Security Configurations - Firewall rules, SELinux policies
- Storage Solutions - LVM configurations, mounted filesystems
- Network Configurations - Interface settings, firewall rules
Core Workflow
Phase 1: General Commands and Navigation
Essential system information commands:
# Shell and system information
ls -al /bin/sh # See default shell
uname -a # All system information
uname -r # Kernel release
uptime # System uptime
# Command location and type
which <command> # Locate executable
whereis <command> # Binary, source, and man page
type <command> # Command type
# User information
who # Currently logged in users
id # Current user UID, GID, groups
# File information
stat <filename> # Detailed file info
file <filename> # File type
# Reading files
less <file> # Scrollable reading
more <file> # Page-by-page reading
tail -f <file> # Follow log files
head -n 20 <file> # First 20 lines
# Finding commands
man -k <keyword> # Find command by keyword
Phase 2: User and Group Management
Manage users and groups:
# User information
getent passwd <user> # User details from /etc/passwd
getent group <group> # Group details from /etc/group
groups <username> # User's groups
id <username> # UID, GID, and groups
# Create users
useradd <username> # Create user
useradd -m -s /bin/bash <username> # With home dir and shell
useradd -D # Show defaults
# Modify users
usermod -l new_name old_name # Change username
usermod -s /bin/zsh <username> # Change shell
usermod -aG <group> <username> # Add to group (preserve others)
usermod -L <username> # Lock account
usermod -U <username> # Unlock account
# Delete users
userdel <username> # Delete user
userdel -r <username> # Delete with home directory
# Password management
passwd <username> # Set password
chage -l <username> # Password aging info
chage -E 2024-12-31 <username> # Set expiration
# Group management
groupadd <groupname> # Create group
groupmod -n new_name old_name # Rename group
groupdel <groupname> # Delete group
gpasswd -a <user> <group> # Add user to group
gpasswd -d <user> <group> # Remove user from group
# Change shell
chsh -s /bin/zsh <username> # Change default shell
Phase 3: File Permissions and ACLs
Manage file access:
# Standard permissions (rwx = 421)
chmod 755 <file> # rwxr-xr-x
chmod 644 <file> # rw-r--r--
chmod u+x <file> # Add execute for owner
chmod g+w <file> # Add write for group
chmod o-rwx <file> # Remove all for others
chmod u=rw,g=r,o= <file> # Explicit assignment
# Ownership
chown <user>:<group> <file> # Change owner and group
chown -R <user>:<group> <dir> # Recursive ownership
chgrp <group> <file> # Change group only
# Access Control Lists (ACL)
getfacl <file> # View ACL
setfacl -m u:<user>:rw <file> # Add user permission
setfacl -m g:<group>:r <file> # Add group permission
setfacl -x u:<user> <file> # Remove user ACL
setfacl -b <file> # Remove all ACLs
setfacl -d -m u:<user>:rw <dir> # Default ACL for new files
# Umask (default permission mask)
umask # Show current umask
umask 027 # Set umask (750 for dirs, 640 for files)
Umask values (subtract from 777/666):
- 0: rwx (read, write, execute)
- 7: no permissions
Phase 4: Disk and Filesystem Management
Manage storage:
# View devices and partitions
lsblk # List block devices
blkid # Block device attributes
fdisk -l # List partition tables
df -h
Установить Linux Commands Reference в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Linux Commands Reference?
This skill should be used when the user asks to "run Linux commands", "manage users and permissions", "configure file systems", "work with LVM", "set up networking", "manage services with systemd", "configure firewalls", "implement SELinux or AppArmor", or "automate tasks with cron". It provides comprehensive Linux command reference for security professionals.
Как установить скилл Linux Commands Reference?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Linux Commands Reference запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic