Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Vagrant - Remove all boxes

$ vagrant box list | cut -f 1 -d ' ' | xargs -L 1 vagrant box remove -f

# This command does the following:

# 1. `vagrant box list`: Prints out a list of all installed vagrant boxes (with two columns—box name or path, and meta info)
# 2. `cut -f 1 -d ' '`: Cuts the list and takes out just the first column (using spaces to delimit the columns)
# 3. `xargs -L 1 vagrant box remove -f`: Use xargs to run one command per line, running the command vagrant box remove -f [box name from list/cut].

# You can use `xargs -t` option to output the commands being run just before they're executed.
Comment

PREVIOUS NEXT
Code Example
Shell :: access windows files on wsl 
Shell :: open a folder linux 
Shell :: black webbrowser github 
Shell :: Printing 1-100 in Bash (3 ways) 
Shell :: docker remove none tag images 
Shell :: Update nvm installed node version and keep globally installed packages 
Shell :: bash loop 
Shell :: git clean 
Shell :: install woeusb in ubuntu 
Shell :: bash change text in specific column 
Shell :: save android studio home bash_profile 
Shell :: first in list bash 
Shell :: install tensorflow anaconda 1 
Shell :: ubuntu server restart 
Shell :: conda check cuda version 
Shell :: get linux distro from terminal 
Shell :: sqlmap enumerate databases 
Shell :: grav permissions 
Shell :: install gnome software 
Shell :: .gitignore global 
Shell :: react native luxon types 
Shell :: install tqdm 
Shell :: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/singh/Library/LaunchAgents/homebrew.mxcl.httpd.plist` exited with 5. singh@Singhs-Air ~ % sudo apachectl start 
Shell :: archive linux 
Shell :: docker interact with running container 
Shell :: update every python library 
Shell :: where is global config file for git 
Shell :: ubuntu find running cron jobs 
Shell :: bash create folder with spaces 
Shell :: how to check version of web3 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =