Linux reference
Linux command finder
Search the commands you'll use every day — files, permissions, processes, networking and security.
ls -laList all files with permissions, owner and size.
Filescd /pathChange the current directory.
FilespwdPrint the current working directory.
Filescp -r src dstCopy files or directories recursively.
Filesmv old newMove or rename a file.
Filesrm -r dirRemove a directory and its contents (careful!).
Filesfind / -name file.txtSearch the filesystem for a file by name.
Searchgrep -rni 'text' .Recursively search for text, case-insensitive, with line numbers.
Searchcat filePrint file contents.
Textless fileScroll through a large file.
Texttail -f /var/log/syslogFollow a log file in real time.
Textawk '{print $1}' filePrint the first column of each line.
Textsort | uniq -cCount unique lines (great for log analysis).
Textchmod 755 fileSet rwx for owner, rx for group and others.
Permissionschown user:group fileChange file owner and group.
Permissionssudo commandRun a command as the superuser.
PermissionsidShow current user ID and groups.
Permissionsps auxList all running processes.
Processestop / htopLive view of CPU and memory usage.
Processeskill -9 PIDForce-stop a process by ID.
Processessystemctl status sshCheck the status of a service.
Processesip aShow network interfaces and IP addresses.
Networkss -tulpnList listening ports and the processes using them.
Networkping -c 4 hostTest connectivity to a host.
Networkcurl -I https://siteFetch HTTP response headers.
Networkdig example.comQuery DNS records.
Networktraceroute hostShow the network path to a host.
Networksudo apt update && sudo apt upgradeUpdate package lists and upgrade packages (Debian/Kali).
Packagessudo apt install pkgInstall a package.
Packagestar -xzvf file.tar.gzExtract a gzip tar archive.
Archivessha256sum fileCompute a file's SHA-256 checksum.
SecuritylastShow recent logins.
Securityjournalctl -xeView recent system journal entries with details.
Security