Table of contents
About Linux
Linux is a free and open-source operating system kernel that was originally created by Linus Torvalds in 1991. It is one of the most widely used operating systems in the world, especially in the server market and among developers. It has multiple flavors like Cent OS, Ubuntu, Fedora, Redhat, and Debian.
Basic command on Linux
π whoami >> to check the current user
π ls >> to check files and directories
πls -l >> List the files and directories in a long list format with extra information
πls *.sh>> List all the files having .sh extension.
πls -i>> List the files and directories with index numbers inodes
πls -d */>> List only directories.(we can also specify a pattern)
πdate >> to check the current date
πtouch >> to create a new file
πmkdir >> to make a directory in a specific location
πpwd >> print work directory. Gives the present working directory.
πcd .. >> Change directory to the provided path
πcd ~ >> Change directory to the home directory
πcd .. /.. >> Change directory to 2 levels back.
πcd home/my_folder >> to go destination directory
πecho>> to print something
πcat >> to write/see content in the particular file
πrm -r/-rf >> to delete files and directory
πmv >> to rename and move the file from one directory to another directory
πcp >> to copy files to one directory
πman any executable command >> can see detail description of that command
πadduser \>> to create a new user account
πuserdel -r \>> to delete user account
πCreate a nested directory A/B/C/D