Basic Linux Commands For Devops
These commands provide a foundational understanding, although there are more advanced and specialized commands to explore beyond these basics.
Is command
The 'ls' command is used to list files and directories in the current location with various display options.
pwd command
The 'pwd' command prints the current directory in the terminal. Useful for checking your location or locating script files.
mkdir
The 'mkdir' creates directories in the terminal.
cd
The 'cd' command is used to navigate between directories.
rm
'rm' is used to delete the file permanently, and if we use 'rmdir' it will delete the empty directory.
cp
The 'cp' command is used to copy files or directories from one location to another.
mv
The 'mv' command is used to move files or directories from one location to another and it is also used to rename the files.
touch
The 'touch' command is used to create an empty file.
cat
The 'cat' command is used to see the contents of a particular file.
clear
The 'clear' command used is to clear the terminal screen.
echo
The 'echo' command is specially used to print something in the terminal.
whoami
The 'whoami' command is used to check the admin name of the system.
man
The 'man' command is used to display a user manual for any commands or utilities available.
tee
The 'tee' command reads from input and writes to both the terminal and files, commonly used in command pipelines for simultaneous output display and file storage.
wc
The 'wc' command in Linux provides the number of word, character, and line counts, among other options.
Happy learning (^_^)