Frequently Used Ubuntu Linux Keyboard Shortcuts on Raspberry Pi 400

Image
Frequently Used Ubuntu Linux Keyboard Shortcuts on Raspberry Pi 400 Due to its keyboard-integrated design, the Raspberry Pi 400 is a computer that can be used immediately by installing an operating system and simply connecting the necessary cables.  When Ubuntu Linux is installed, it provides a desktop system where the graphical environment and the terminal environment naturally coexist. Ubuntu Linux can be operated using a mouse, but combining it with basic keyboard shortcuts allows users to perform everyday tasks—such as switching screens, managing applications, and using the terminal—more smoothly and comfortably.  Especially in a hardware-limited environment like the Raspberry Pi 400, reducing unnecessary mouse movement and controlling the system through keyboard input can also help users better understand how the system works. 1. Most Frequently Used Keyboard Shortcuts (Daily Use) 1.1 Super Key (Windows Key) Function : Open Activities Overview Usage Frequency : ...

Docker Basic Commands Explained

Docker Basic Commands Explained: 

Understanding the Foundations of Container Usage

Docker Basic Commands Explained

Docker is primarily operated through the command-line interface (CLI).

Using CLI commands, users can manage images, check system status, run containers, and control the container lifecycle.

By understanding the structure and purpose of commonly used Docker commands, it becomes much easier to grasp Docker’s overall workflow and operating principles.


1. Basic Structure of Docker Commands

Most Docker commands follow a consistent pattern:

docker [object] [command] [options]

This structure helps users predict how commands work across different contexts.

Whether managing images, containers, or system resources, Docker maintains this unified command format.



2. Checking Docker Version and System Status

Before using Docker, it is common to verify that Docker is installed and running correctly.

docker --version

  • Displays the installed Docker client version

  • Useful for confirming successful installation

docker version


docker info

  • Shows overall Docker engine information

  • Includes container count, image count, storage driver, and system configuration

docker info


These commands provide general insight into the Docker environment without modifying anything.



3. Docker Image Management Commands

Docker images are the foundation of containers.

They contain the filesystem, libraries, and application environment needed to run a container.

docker images

  • Lists all images stored locally

  • Displays image name, tag, ID, and size

docker images


docker pull

  • Downloads an image from a remote registry such as Docker Hub

  • Prepares images for later container execution


docker rmi

  • Removes images from the local system

  • Commonly used when cleaning up unused resources

Understanding image commands helps clarify how Docker environments are built and reused.



4. Running Containers

Containers are running instances of Docker images.

Most Docker workflows revolve around creating and managing containers.


docker run

  • Creates and starts a container from an image

  • If the image does not exist locally, Docker pulls it automatically

Internally, this command performs several steps:

  1. Checks for the image

  2. Creates a container

  3. Starts execution

This makes docker run one of the most frequently used Docker commands.



5. Viewing Running Containers

Since multiple containers can run simultaneously, visibility is important.

docker ps

  • Displays currently running containers

  • Shows container ID, name, status, and runtime information


docker ps -a

  • Displays all containers, including stopped ones

  • Useful for reviewing container history

These commands provide an overview of container activity within the system.



6. Controlling Container State

Docker allows containers to be started, stopped, and restarted as needed.

docker stop

  • Gracefully stops a running container


docker start

  • Starts a previously stopped container


docker restart

  • Stops and restarts a container in one step

These commands manage the container lifecycle without affecting the underlying image.



7. Removing Containers

Containers that are no longer needed can be removed.

docker rm

  • Deletes stopped containers

  • Helps keep the system organized

Since containers can be recreated from images at any time, removing unused containers is a normal part of Docker usage.



8. Accessing a Running Container

Docker allows users to interact directly with a running container.

docker exec

  • Executes a command inside an active container

  • Often used to inspect the runtime environment

This command helps users understand how applications behave inside containers.



9. Viewing Container Logs

Container output is captured through logs.

docker logs

  • Displays standard output and error logs

  • Useful for observing application behavior

Logs provide insight into what a container is doing without direct interaction.



10. Docker System Cleanup Commands

As Docker usage increases, unused resources can accumulate.

docker system df

  • Shows disk usage by Docker resources


docker system prune

  • Removes unused containers, images, and networks

  • Helps maintain a clean Docker environment

These commands focus on visibility and organization rather than configuration changes.



11. Key Concepts for Learning Docker Commands

Rather than memorizing commands, it is more effective to understand Docker’s core flow:

  • Images define environments

  • Containers execute images

  • Commands control creation, execution, and cleanup

Once this structure is clear, new Docker commands become easier to understand.



12. Conclusion

Docker’s basic commands may feel complex at first, but as you begin using them, you will naturally understand how images and containers interact. 

These core commands form the foundation of container-based workflows.

These fundamental concepts also serve as the basis for understanding topics such as Dockerfiles, Docker Compose, and container networking.

Popular posts from this blog

Understanding Computer System

Understanding Operating Systems

Understanding System Software