Top 100 Linux Commands
PWD prints the current working directory CD changes to another directory LS lists the directory contents CAT lists or prints contents of file CP copy one file to another MV move file or directory to another location also used to rename files MKDIR make new directory RMDIR remove directory RM remove files and directories touch create blank file or update metadata time info locate locate a file find find a file grep search through file contents sudo perform task as root usually proceeds other commands df list disks with associated disk space info du list disk usage by files or directories head view first lines of any text file tail view last lines of any text file diff compare two files tar compress files into a smaller size chmod change permissions chown change owner jobs print current processes started by the shell in current session kill terminate a process ping check connectivity by throwing data at a server and waiting for a response wget download files using the command line uname check lennox kernel information top list current system information including processes and processor usage history list past terminal commands man user manual for giving command echo print out given data useful for entering data into a file zip compress multiple files into a dot zip file unzip uncompress a dot zip file post name print current hostname user add add new user user del delete a system user pass wd change current user password alias create shortcut for longer command unalias remove an alias from current shell session exit exit current shell environment shut down shut down the computer in one minute reboot reboot the system ps prints the processes of the current shell session which prints out full path of the given shell command or program shred destroy a file by overriding it with other useless data less terminal pager that allows you to scroll through long files inside terminal who am i prince current username what is prince a single line description of giving command wc gets word count of given file also helpful for getting number of files in a directory where is prince location of given search term dd disk destroyer copy one disk image to another cal show a calendar mount mount a drive you mount unmounted drive clear clear current terminal contents cmp compares two files and determines if they're identical comm similar to diff compares the files for differences sort sort contents of file and display in terminal export set variables in current shell environment ssh connect to outside securely terminate all related processes of given application create a link between one file and another similar to shortcuts scripting language used to manipulate data bc basic calculator when used with echo bg used to place process or action in background cfdisk manage system partitions fdisk manage system partitions chk config used to list all available services chpasswd used to change passwords of multiple users at a time chroot used to change the root directory chsh used to change the current shell chvt used to change between different tty's column display output and neat columns date display current date dir display contents of a directory similar to ls eject used to eject removable media like usb sticks and hard drives fc-cache scans font directories fc-list lists available fonts free displays total amount of free space along with memory info group add add new group group del delete existing group group mod modify existing group halt stops all cpu processes reboots the system or shuts down the system lsblk display info about connected drives blk id show info about mounted drives ls usb shows info about connected usb devices and buses pinky displays information about current logged in users power off similar to shutdown powers off the computer rename renames files can be used with regex sleep delay execution of a command split split large files into several smaller files tree display recursive directory contents in tree form uptime display how long a computer has been up since its last reboot users show current logged in users chage change when a password expires chfn change current user details chgrp change group ownership of file or directory env print current list of environment variables rsync backup directories to another location journal ctl used to display system d and kernel logs

Leave a Reply

Your email address will not be published. Required fields are marked *