90daysofDevOps-Day 3
We will be using Ubuntu Linux throughout this journey. As Ubuntu has a large and active community of users and developers. This community provides extensive support through forums, documentation, tutorials, and other resources. If you encounter any issues or have questions, you can often find assistance from the Ubuntu community.
Top 50 basic commands in Linux.
ls
: List files and directories in the current directory.cd
: Change directory.pwd
: Print the current working directory.mkdir
: Create a new directory.rm
: Remove files or directories.cp
: Copy files and directories.mv
: Move or rename files and directories.cat
: Display the contents of a file.touch
: Create an empty file or update the timestamp of an existing file.grep
: Search for a specific pattern in files.chmod
: Change the permissions of a file or directory.sudo
: Execute a command with administrative privileges.man
: Display the manual pages for a command.find
: Search for files and directories based on various criteria.tar
: Create or extract compressed archive files.gzip
: Compress files using the gzip algorithm.gunzip
: Decompress files compressed with gzip.ssh
: Connect to a remote server using the SSH protocol.scp
: Copy files between local and remote systems over SSH.wget
: Download files from the internet.curl
: Transfer data to or from a server using various protocols.df
: Display disk usage information.du
: Estimate file and directory sizes.top
: Display system resource usage and running processes.ps
: Display information about active processes.kill
: Terminate processes by ID or name.ping
: Send ICMP Echo Request packets to a host.ifconfig
: Display or configure network interfaces.netstat
: Display network connection information.history
: Display previously executed commands.date
: Display or set the system date and time.uptime
: Display the system's uptime.whoami
: Display the current username.file
: Determine the file type.chown
: Change the ownership of files or directories.chgrp
: Change the group ownership of files or directories.ln
: Create links between files.alias
: Create a shortcut for a command.echo
: Print text or variables to the terminal.sed
: Stream editor for filtering and transforming text.awk
: Text processing and pattern matching tool.sort
: Sort lines of text files.cut
: Extract sections from lines of files.head
: Output the beginning of files.tail
: Output the end of files.diff
: Compare files line by line.patch
: Apply changes to files using patch files.ssh-keygen
: Generate SSH key pairs.ssh-add
: Add private keys to the SSH agent.scp
: Securely copy files between systems
These are just a few basic commands, but Linux provides a wide range of commands and functionalities. You can explore more commands and their options by referring to the manual pages using the man
command. For example, man ls
will display the manual for the ls
command.
Subscribe to my newsletter
Read articles from Renu Kokate directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by