XSL Transforms : - Get a listing of vSwitch (provided in sample) - Get a listing
ID: 3698078 • Letter: X
Question
XSL Transforms :
- Get a listing of vSwitch (provided in sample)
- Get a listing of Pnic
- Get a listing ConsoleVnic
- Get a list of Services Running
- Check the Firewall Status
- Check Firewall Status for CIMHttpsServer
Regular Expressions :
- Provide a regex that matches all numbers less than or equal to 1048576.
- Provide a regex such it matches the "foobar" set to true/false/yes/no regardless of the case :
for e.g.
foobar = true
foobar True
Foobar : FALSE
MySQL :
- List all users with null or blank password.
- List all users having Super privilege and Shutdown privilege.
- Provide a SQL query to audit secure_auth is enabled.
Linux
- What is the purpose of /proc filesystem ?
- Assume your dev system is full, how will you find out you which directories are using up
space, and start clearing unnecessary files?
- What are the benefits of a setuid program? And are there any security implications
of having setuid programs on a system?
- Provide a command to find following files.
- setuid or setguid bit set
- world writeable files.
- When would you redirect output to /dev/null 2>&1 and what purpose does it serve?
- How would you read first and last X number of lines from a file?
- How will you compare two files, and the list lines that have changed, while ignoring
blank lines, and spaces?
- How will you determine the program name associated that is listening on a given TCP/UDP port?
- Provide a command using grep to find all files with "info" or "error" or "warn" strings,
and then pipe those results, and list files that were modified in the past one week.
- Provide detailed steps to configure password less login to a system using public/private
keys.
GIT
- Describe the process to commit files to git.
- How will you unstage a file that has already been staged?
- How will you revert to an old revision of file after a bad commit?
Explanation / Answer
- How will you compare two files, and the list lines that have changed, while ignoringblank lines, and spaces?
git diff filename1 filename2
- Describe the process to commit files to git.
When we work with git, then we have following states of file, that are given below:
1) Modified State: When we simply do code changes and save them.
2) Staged State: After modiying the files we add it to the git, using "git add file_name" command. As we add file to git, its state will be staged.
3) After these to state we have commit state, after adding files to git we need to commit and its beingind done on staged file with command "git commit file_name"
- How will you unstage a file that has already been staged?
"git reset HEAD filename"
This will move the file to staged to modified
- How will you revert to an old revision of file after a bad commit?
git reset --hard HEAD^
This will remove the commit as well as the changes
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.