Skip to content

Instantly share code, notes, and snippets.

@sumanthkumarc
Last active September 15, 2016 06:10
Show Gist options
  • Save sumanthkumarc/a79e9caf0c3f8c295595b49902ddb2c3 to your computer and use it in GitHub Desktop.
Save sumanthkumarc/a79e9caf0c3f8c295595b49902ddb2c3 to your computer and use it in GitHub Desktop.
Some linux commands
# For starting xdman
java -jar xdman.jar
#for editing hosts file
sudo gedit /etc/hosts
#For wget
wget http://file_url
#For resuming the previously interupted file download
wget -c http://file_url
#Some vagrant commands
# Add the box locally
vagrant box add box_name box_file_path
# Create a vagrantfile with local box added above as base
vagrant init box_name
vagrant up
vagrant ssh
# Removes the vm instance created above using up
vagrant destroy
#saves the vm data in the hard disk and exits
vagrant suspend
# Shows the status of the vm's
vagrant status
#Opening file explorer(nautilus) with full permissions so that you can do/edit anything!!!(be careful)
sudo nautilus
# Using nano
sudo nano /filename
for copying:
at start of line - ctrl+^
at end of line to copy - alt+^
to paste: ctrl+u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment