Search test library by skills or roles
⌘ K

Adaface Sample Linux Questions

Here are some sample Linux questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Debugging Issues
Environment Variables
Debugging
Solve
You are working on a Linux system and have recently installed a new program named myprogram. The executable is located in /opt/myprogram/bin/. You want to be able to run this program from any directory in your shell without specifying the full path.
You executed the following command:
            export PATH="/opt/myprogram/bin"
However, when you try to run the program using myprogram, you get the following error message:
            -bash: myprogram: command not found
            
            Which of the following commands can fix this issue and allow you to run the program?
A: export PATH=$PATH:/opt/myprogram/bin/
            B: export PATH="/opt/myprogram:$PATH"
            C: export PATH="/opt/myprogram/bin:$PATH"
            D: ln -s /opt/myprogram/bin/myprogram /usr/local/bin/myprogram

Easy

File Structure and Navigation
Files
Basic Commands
Solve
Consider the following directory structure:
 image
You start at /home/user and execute the following commands:
 image
What will be the resulting directory structure?
 image

Medium

Fork mellow yellow
Solve
How many times will the following code will print "Mellow Yellow"?
 image

Medium

Remote server connection
SSH
Solve
Our software engineering intern, Wu is looking to use port 4545 on localhost to connect to a remote server called woot.bananas.com on port 80. Which command would you recommend for this?
 image
🧐 Question🔧 Skill

Medium

Debugging Issues
Environment Variables
Debugging

2 mins

Linux
Solve

Easy

File Structure and Navigation
Files
Basic Commands

2 mins

Linux
Solve

Medium

Fork mellow yellow

2 mins

Linux
Solve

Medium

Remote server connection
SSH

2 mins

Linux
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Debugging Issues
Environment Variables
Debugging
Linux
Medium2 mins
Solve
File Structure and Navigation
Files
Basic Commands
Linux
Easy2 mins
Solve
Fork mellow yellow
Linux
Medium2 mins
Solve
Remote server connection
SSH
Linux
Medium2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️