This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you have migrated recently from Windows to Unix like operating system, you will be bit surprised, when you put any CD Rom or Pen Drive in your system, why doesn’t it get detected. So, why doesn’t it get detected? Because it is not mounted. | |
As you all know, Linux is working with Files. Device, Drive, Partition everything is File in here. I have told this earlier, working with device is as easy as you write into File and read from it. | |
Ubuntu and other latest release are capable to auto mount your drive/device/CD/DVD-ROM when you connect. | |
There are dedicated drives in Linux File System hierarchy to mount external devices/drives/CD-ROMs. They are /media/ and /mnt/ drives. So to mount into any of these two drives, just do, | |
#mount <what_to_mount> <where_to_mount> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Doesn't matter how good programmer, system administrator or technologist you are. You always have to refer to online documentation or I say ask GOOGLE to recall | |
those commands. It pisses me a lot. I created this GIST to refer too, whenever I am stuck. | |
---------------------------------------------------------------------------------------------- | |
Privileges Management | |
---------------------------------------------------------------------------------------------- | |
$sudo :– run command as root | |
$sudo -s :– open a root shell | |
$sudo -i :-similar to sudo su - , gives you roots environment configuration | |
$sudo -s -u user name : – open a shell as user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One of the biggest challenges I run into working with ESXi hosts is the lack of a real usable CLI. The remote CLI provided by VMware is clunky at best and makes administration a bit of a pain. I did some poking around and managed to find some interesting CLI commands that work for ESXi. | |
Most of these have no manual page but will output a help message if run by themselves. I would recommend using extreme caution and using a test host to determine the usefulness in your environment before using them on an important system. Also keep in mind that the examples that I give are not the "only" way the commands can be used. | |
To power on a virtual machine from the command line: | |
- Lists all vm's running on hypervisor and provides vmid | |
vim-cmd vmsvc/getallvms | |
NewerOlder