![]() |
| How to execute kali Linux , Ubuntu commands on virtual machine? | IndianTechnoEra |
How To execute UNIX/LINUX commands in Virtual Machine
Requirements:
VirtualBox software
Ubuntu OS of version ubuntu-15.10-desktop-i386 / Linux
Procedure:
Open the virtual box image which has Hadoop installed.
Log in using hduser account.
Execute different Unix commands in the virtual machine.
Commands
1. ls: Lists files in current directory
2. mkdir: Make a directory
3. cd : Used to enter into the given directory
4. rmdir : Used to remove directory and dir should be empty.
5. cat : Used to create file (cat>file.txt) with data and Ctrl+C to save.
It is also used to display file (cat file.txt).
It is also used for copy, combining text file.
6. cat file.txt : It will show the data of file.txt file
7. cp : Used to copy a file.
Here myText.txt is original text file and making
a copy of myText.txt with different name myNewText.txt
but including data of myText.txt
8. mv : Move or rename the file
9. rm : Remove file
10. Cd .. : Back directory
11. mv : Moving one folder to another new folder
12. clear : It’s clear the screen
Result: Hence executed most useful commands in Linux
