Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mkswapfile

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mkswapfile

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

mkswapfile

mkswapfile - make and enable a swap file easily.

This gem supports only Linux.

Installation

$ gem install mkswapfile
(you may need to run as root or through sudo.)

Usage

$ sudo mkswapfile size
size: 1-8 (GB)


EXAMPLE

$ sudo mkswapfile 2
dd if=/dev/zero of=/swap bs=1M count=2049 && chmod 600 /swap && mkswap /swap && \ 
(echo '/swap swap swap defaults 0 0' | tee -a /etc/fstab) && swapon /swap
....

$ free -m
              total        used        free      shared  buff/cache   available
Mem:            481          90          11           0         379         378
Swap:          2048           0        2048

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/s3fxn/mkswapfile.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 28 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc