FreeKB - Linux Commands articles
Linux Commands articles

Commands$? (return code)alias (create commands)apt-cache (search for a package)apt-get (install update packages)arp (address resolution protocol)at (schedule a one time job)awkbase64 commandbasenamebatch (schedule jobs)blkid command (determine file system type)bunzip2 (unzip a bzip2 archive)bzip2 (compress file)cat or tac (view the content of a file)chage (user account aging information expire password)chkconfig (runlevel)chmod (change a file or directory standard permissions)chown (change ownership)cp (copy)cpio (create, view, and extract an archive)crontab (schedule reoccurring jobs)cutdatedebugfs command (recover a deleted file)declare commanddf command (disk filesystem usage)df command (inodes)dhclient (dhcp - obtain, renew, and release IP address)diff command (differences between files)dig (view DNS information)du (disk usage)echo (print output)edquota (edit quota)evalexec (execute a command)expand (replace tabs with spaces)fdisk (create a disk partition)fdisk (delete a disk partition)fdisk command (increase the size of a disk partition)file commandfile command (determine file system type)findfind command - date accessed (-atime)find command - date changed (-ctime)find command - date modified (-mtime)find command - exclude "permission denied"find command - exclude directories from search (-not -path)find command - executable filesfind command - hidden files and directoriesfind files owned by groupfind files owned by userfind files that match permissionfold (wrap text)free (view RAM memory)ftpfuser (determine the PID of a file)fuser (view kill processes)gdisk (format disk partition)genkey (create a public / private key pair using crypto-utils)getent (view entries)getfacl (view access control entries)gpasswd (change group password)grepgrep (--exclude-dir)groupadd (create group)groupmod (modify group)growisofs (burn CD or DVD)gunzip (unzip a gzip archive)gzip (compress file)hash commandhistoryhostnamehwclock (hardware clock)iconv (character encoding standard)id commandifconfig (IP address information)ifconfig command (temporarily change the MAC address)ifconfig promisc (promiscuous mode)info (information about a command)insmod (insert a module)ipip neighborhood (view address resolution cache)ipcrc (remove semaphores)ipcs (list semaphores)isql (connect to a database)isql --version (SQL version)join (combine or merge lines in two different files)journalctl (view the journal)journalctl --since and --until filterskill (end a process)killall (end a process)last (view current and recently logged in users)ldd (shared libraries)ln (hard soft symbolic symlink links)locale (language, country, character encoding standard)logger (add records to a log file)lp (print a file)lpc (list printers)lpq (print queue)lpr (print a file)lprm (remove print jobs)lpstat (list available printers)ls (list)ls (list) --ignorelsblk command (list hard drive solid state drive)lsmod (list loaded modules)lsof commandmail (create send and read emails)mailx (create send and read emails)man (view manual for a command)mdadm --detail (show details of RAID array)mdadm --examine (partition RAID)mdadm --stop (stop a RAID array)mkdir (make directory)mke2fs (create a file system)mkfs (create a file system)modinfo (view module information)modprobe (insert and remove modules)mount (mount a partition or share)mv (move)netstat (view network connections)nice (influence a process to run with higher or lower priority)nl (number lines)nmcli connection shownmcli general statusnmcli hostnamenmcli modifynohup command (run a process while logged out)nslookup (name server looking DNS)ntpdate (synchronize to an NTP server)ntpq (view NTP servers being used)parted (format disk partition)passwd (change a users password)paste (read, delimit, combine files)pdbedit command (Samba users)pr (format file for printing)printf (print output)ps (process PID)ps commad - show processes being run by a certain user (-U)ps command - add additional columns (-f)ps command - display a process associated with a certain PID (-p)ps command - display how long a process has been running (-o etime etimes)ps command - show all running processes (-e -A ax)ps command - show processes being run by a system service (-C)quotacheck command (check disk quota)quotaon (enable quota)read (prompt user input)renice (influence a process to run with higher or lower priority)repquota command (view quota)restoreconrm (remove delete)rmdir (remove directory)route (view and create network routes)rpm2cpio command (compress an RPM package into a CPIO archive)rsync (copy)sar command (sysstat CPU statistics)scp (transfer files using secure copy protocol)sed (delete)sed (replace string)sendmail (create send and read emails)seq (sequence of numbers)service commandsetfacl (create update access control entries)shutdown (shutdown, reboot, halt, poweroff)sortsource (export variable)split (divide a single file into multiple files)ssh-copy-idssh-keyscan command (get public certificates)star (create, view, extract an archive)stat (atime mtime ctime)su (switch user)sudosudo (give a group permission to run certain commands)sudo (give a user permission to run certain commands)systemctl commandtcpdump commandtee (redirect output to both the console and a file)testtimedatectltop (view processes in real time)touch (create file)tr (trade, replace, change characters)tracepath (trace route to a host)traceroutetzselect (time zone select)ulimitumask (view and update default permission masks)umount (unmount a partition or share)uname (display information about the kernel)unexpand (replace spaces with tabs in a file)uniq (list unique lines in a file)unlinkunset (undefine a variable)unzipuptimeuseradd (create a user account)userdel (delete user account)usermod (modifying a users account)w (view logged in users)wall (send message to other systems)watch command (run a command once every x seconds)wc (count words, characters, and lines)wget (download files from remote systems)which commandwho (view logged in users)xargs (convert stdin to an argument)xml_grep (parse XML file)xwininfo command (display information about a window)yum (download, install, remove, update packages)yumdownloader (download a package)zipTroubleshootingResolve "not allowed to run sudo"