AWS-Related Command-Line Interface Commands You Should Know
The Command-Line Interface (CLI) presents an uncomfortable environment for many people. Given that the CLI for the Amazon Web Services (AWS) free tier relies on Linux and that many administrators aren’t familiar with the operating system, the situation becomes even less comfortable.
However, by using the AWS consoles as much as possible, you can reduce the need for the CLI to a minimum. Even so, you find that some tasks still require the CLI, which is where this handy list of CLI commands comes into play. (Information you must replace with a specific entry appears in italics.)
- cat /proc/mounts: Displays a list of mounted drives.
- ls: Lists the contents of a directory. You may optionally provide a directory path to list.
- rm <filename>: Removes the specified file from the current directory.
- rpm -ql ‘<package name>‘: Obtains a list of utilities contained within a package.
- sudo chmod <options>: Changes the access mode for the current directory.
- sudo mkdir <directory name>: Creates a new directory to hold files.
- sudo reboot: Reboots the remove AWS system so that you can see the results of any changes you make.
- sudo rmdir <directory name>: Removes the specified directory.
- sudo yum groupinstall “<group package name>“: Installs the specified group of packages.
- sudo yum search ‘<package name>‘: Searches for a package.
- sudo yum update: Performs required AWS updates.
- sudo yum -y install <service or feature>: Installs a required support service or feature onto the AWS system.
Linux provides the same wealth of CLI commands that Windows does, but these are absolute essentials when working with AWS. You can find many sources for these commands online, but one of the better resources appears at Linux Command Directory. The important thing is to remember to use the consoles when you can in order to keep things simple.