One of the following scenarios apply:
Problem scenario #1
You are trying to view namespaces on a Linux server. You run “lsns” but you get “lsns: command not found.”
Problem scenario #2
You run this: sudo apt -y install util-linux
You see “util-linux is already the newest version (2.27.1-6ubuntu3.8)”
What should you do on a Debian derivative of Linux (e.g.,
You want to install MongoDB on a RHEL server. What do you do?
1. Create this file: /etc/yum.repos.d/mongodb-org-4.4.repo
- Run these commands:
sudo yum -y update
sudo yum -y install mongodb-org
- Test the installation by running this: mongod -version
If you are using Debian or Ubuntu,
You want to create a Windows 2016 server in AWS. How do you do this?
1. In the AWS Console go to the EC2 Dashbaord.
2. Go to Launch Instance -Find the AMI for Microsoft Windows Server 2016 Base and click “Select.”
3. Click “Next: Configure Instance Details”
4. Click “Next: Add Storage”
5. Click “Next: Add Tags”
You know that Python has a feature for documentation strings that can print out when your program runs. How does it work as comments and as something that is displayed at the time the code is executed?
To best illustrate how one works, create a file called test.py with this code and run it:
”’This is an example of a docstring. » Read more..
You are trying to find out what .deb file you need (e.g., from pkgs.org). How do you find out if you need to decide between options like i386, arm, or amd64 on a Debian or Ubuntu server? What should you do?
Run this command:
sudo dpkg –print-architecture » Read more..
From the AWS CLI you try to create a node group. But you get this error: “An error occurred (InvalidParameterException) when calling the CreateNodegroup operation: The provided nodeRole is invalid.”
The above can happen when you use a role’s name but not the ARN string (such as arn:aws:iam::123456:role/foobar). Use the ARN string of the role instead of what you were using.
You want to create EC-2 instances using an SDK (a program that automatically generates AWS resources). How do you do this?
Run this program to create a RHEL server (but you can replace the “ami-0a54aef4ef3b5f881” with the image ID of your choice):
# Replace AKIAabcdefghijk with your AWS access key ID
# Replace 1a2b3c4d5e6f7g8h9/i0j0k9l8m7n6o5p4q3r2s1tuvwxyz with your AWS Secret Access key
# Replace us-west-1 with the region of your choice
# Replace ami-0a54aef4ef3b5f881 with the image ID of your choice. » Read more..
You are at the Presto CLI. You want to find out what version you are using. What do you do?
- Run this command:
SELECT * FROM system.runtime.nodes;
- Press “q” to exit.