0% found this document useful (0 votes)
3 views2 pages

Linux-1 1

A Linux server in AWS is a virtual machine running a Linux OS in the cloud, allowing users to manage it without physical hardware. Users can launch and control the server easily, with options for flexibility and scalability. The document also provides examples of basic Linux commands for server management, including switching to root user, creating directories and files, and listing directory contents.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Linux-1 1

A Linux server in AWS is a virtual machine running a Linux OS in the cloud, allowing users to manage it without physical hardware. Users can launch and control the server easily, with options for flexibility and scalability. The document also provides examples of basic Linux commands for server management, including switching to root user, creating directories and files, and listing directory contents.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

A Linux server in AWS is simply a virtual machine (VM) running a Linux operating

system (like Ubuntu, CentOS, Amazon Linux, etc.) in the cloud using Amazon Web
Services (AWS).
Instead of setting up and maintaining a physical server, you can launch and manage
a Linux server on AWS in just a few clicks. AWS provides the infrastructure and
resources, while you can focus on your server and applications.

To break it down:
AWS gives you a remote server in the cloud.
You can choose a Linux OS to run on that server.
You have full control over the server to install, configure, and run software as
needed.
It's flexible, scalable, and you only pay for what you use.

In short, it's a way to run a Linux-based server without having to own or maintain
physical hardware, and it's all hosted on AWS's powerful infrastructure.

1. sudo su
What it does:
sudo gives you superuser (root) privileges.
su stands for "substitute user" and switches the user context to the root user.

Correct example:
sudo su — This switches you to the root user (superuser) in the terminal.

Example usage:
sudo su
After running this, you'll have root access (you can modify anything on the
system).

2. mkdir (Make Directory)


What it does: Creates a new directory (folder).
Example:
mkdir myfolder
This creates a new directory named myfolder in the current location.

3. touch (Create an Empty File)


What it does: Creates an empty file or updates the timestamp of an existing file.
Example:
touch myfile.txt
This creates an empty file named myfile.txt in the current directory.

4. ls (List Directory Contents)


What it does: Lists files and directories in the current directory.
Example:
ls
This lists all files and directories in the current directory.

5. ll (Long List)
What it does: Displays detailed information (permissions, owner, size, etc.) about
files and directories.
Example:
ll
This shows a detailed list of files, including permissions, owner, group, size, and
modification date.

If ll isn't working, you can use ls -l instead.


6. pwd (Print Working Directory)
What it does: Shows the current directory you're working in.
Example:
pwd
This will display the full path to your current working directory, like /home/user.

Putting it all together:


Here’s an example of using these commands together:
sudo su # Switch to root user
mkdir myfolder # Create a new directory called "myfolder"
cd myfolder # Navigate into the new directory
touch myfile.txt # Create an empty file named "myfile.txt"
ls # List files in the directory
ll # Show detailed file info
pwd # Print the current working directory

You might also like