Linux Terminal Commands
The most important commands to get started, the way I learned them myself when switching to Kubuntu. Not meant to be complete, just the commands that come up most often in everyday use.
Last updated: September 1, 2026
File System
lsShows the contents of a foldercdChanges to a different folderpwdShows the current folder pathmkdirCreates a new foldercpCopies files or foldersmvMoves or renames filesrmDeletes files, with -r whole folders toocatShows the content of a file in the terminalnanoOpens a file in a simple text editorPermissions and Users
sudoRuns a command with administrator rightschmodChanges a file's access permissionschownChanges the owner of a filewhoamiShows the currently logged in userpasswdChanges the current user's passwordgroupsShows which groups the current user belongs tousermodChanges settings of an existing user accountManaging Packages
apt updateUpdates the list of available software packagesapt upgradeInstalls available updates for installed packagesapt installInstalls a new software packageapt removeRemoves an installed software packageProcesses and System
topShows running processes and load in real timepsLists currently running processeskillEnds a process by its IDsystemctlStarts, stops or checks system servicesdf -hShows free storage space on drivesfree -hShows used and free memoryhtopA more visual, interactive version of topjournalctlShows system logs from systemd servicesNetwork
pingChecks whether a server is reachablecurlFetches an address and shows the response in the terminalsshConnects encrypted to a remote serverip aShows network interfaces and IP addresseswgetDownloads a file from an addressscpCopies files encrypted to a remote servertracerouteShows the hops on the way to a serverhostname -IShows your own IP address on the networkText Processing and Search
grepSearches text for a certain patternfindSearches files by name or propertieslessShows long files page by page for scrollingheadShows the first lines of a filetailShows the last lines of a file, often with -f for live logstouchCreates a new, empty filedu -hShows disk usage of files and folders