This objective of this test is to know if you master the most useful commands for Linux. Feel free to ask for help if you can’t solve some of the questions.
test
in your working directorytest_file.txt
in the folder ~/test
. What is the
meaning of ~
in ~/test
?/home/imaEns/jdequidt/test
with an absolute path ? Same question with a
relative path./home/imaEns/jdequidt/test
? How many
directories ? How many executable files ?/home/imaEns/jdequidt/test
, how do
you copy the file users
in your folder ~/test
? Assuming that your
working directory is ~/test
, how do you copy the file
/home/imaEns/jdequidt/test/users
in your working directory ? Choose one way
or the other to copy the file users
in your folder ~/test
.~/test
, how do you display the content of the filer users
?SE3
is 1023
, what is the command to
display only users that belongs to the group SE3
?se3.txt
?se3.txt
alphabetically sorted ? What is the command to output
the content of se3.txt
alphabetically sorted ?SE3
members from the file users
?SE3
?getent group
lists all the group created in Polytech Lille.
Using your login, how can you filter the result of the previous command
to display only the groups you belong to. How can you complement the command
to know how many groups you belong to.ima2002
. How can you display the users of the group ima2002
? Are people
you know in this group ?~/test
and all
its content ? Do it.