ram
storageLinux/Unix
The ram command is one of the most frequently used commands in Linux/Unix-like operating systems. ram Create a RAM disk or display information about RAM disks
Quick Reference
Command Name:
ram
Category:
storage
Platform:
Linux/Unix
Basic Usage:
ram [options] [arguments]
Common Use Cases
Syntax
ram [options] size
Options
Option | Description |
---|---|
-c, --filesystem=TYPE |
Specify filesystem type (default: ext4) |
-m, --mountpoint=DIR |
Mount point for the RAM disk |
-o, --owner=USER |
Owner of the RAM disk |
-g, --group=GROUP |
Group of the RAM disk |
-p, --permissions=MODE |
Access permissions for the RAM disk |
-l, --list |
List all RAM disks |
-r, --remove=DIR |
Remove a RAM disk |
-s, --stats |
Show RAM disk statistics |
-h, --help |
Display help information |
-v, --version |
Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the ram
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sudo ram 512M