Test1

Page Actions

A little test on what you have learned in the exercises on

Linux command line and basics of C programming

Linux commands:

  1. Which Linux command do you use to list all files in a directory (folder)?

  2. How do you see hidden files and how do you recognize them?

  3. How do you see the file permissions?

  4. How can you find out your current working directory?

  5. In the following screen dump I show the contents of one of my directories. You see two directories named \x93.\x94 and \x93..\x94 . What do these mean?
    ls.png

  6. You downloaded the file \x93yesterday.txt\x94 to your $HOME/Downloads directory. How do you copy this file to your current working directory?

  7. Which command do you use to see the content of yesterday.txt

  8. Which command do you use to list all lines containing the string \x93yesterday\x94 in yesterday.txt?

C programming

  1. The ASCII equivalent of the character \x910\x92 is 0x30
    What does the following program print?

    myascii.png

  2. You can write programs allowing the user to enter command line parameters. The following program \x93cl.c\x94 does this.

    cl.png

    What will it print if the user types:
    ./cl ike uli 25

Article text.

-- %USERSIG{UliRaich - 2017-10-02}%

Comments

 
I Attachment Action Size Date Who Comment
cl.pngpng cl.png manage 14 K 02 Oct 2017 - 15:21 UnknownUser  
ls.pngpng ls.png manage 17 K 02 Oct 2017 - 15:21 UnknownUser  
myascii.pngpng myascii.png manage 14 K 02 Oct 2017 - 15:21 UnknownUser  
Topic revision: r1 - 02 Oct 2017, uli