Shell Commands

Problem #6

Tags: junior shell

Who solved this?

No translations... yet

source: several questions combined from interview in Murano Software back in 2014

Whatever programming language we prefer, one day the situation comes when we need to make some system-oriented checks or tweaks and it boils down to use some shell commands. Now you are to investigate sandbox system (one we use for code running tools) with the help of popular bash shell script. As it happens with most of shell interpreters, part of necessary commands are really external executable programs in the system, but it is ok, generally you may need some trial and error to see which of them are available.

For example, try entering single line at first and click "Run" (or "Bash" button below):

date

If everything works well, you'll get the server date and time as output. Try running which date instead and you'll find out that date actually is an external program (you'll see the full path to it).

Problem statement

This task doesn't need input data. You are only to figure out some commands and print their results on a single line. Here is what we want to know:

Example

1724997513 zombi /home/zombi 656
You need to login to get test data and submit solution.