Inspec Shell
Inspec shell helps to run the command without writing the complete script
This is a good place to starts with the DSL
Type the below command in the terminal to get into the shell
$ inspec shell
This command will get us into the shell
Type the below command to check out what are the different options available in the Inspec shell
$ help
Now lets try to explore the different resources that Inspec gonna offer us
$ help resources
Now try to explore the os
type resource to find out the OS family Execute the below command
$ os[:family]
You can execute the normal shell command using the command
resource
$ command('shell-command').stdout
Task 1
Find the Operating system name using the Inspec shell
without using the command
resource
There are other tools also present along with Inspec CLI
$ inspec detect
- used to detect the platform configuration