linux commands help?

Discussion in 'Linux Discussion' started by Hong N, May 4, 2008.

  1. Hong N Guest

    Hong N
    (1) For each of the following questions, write down the UnixILinux command(s).
    (a) How do you find out what the permissions of a file ff 1 are?
    (b) What are the possible permissions of a file or (and what do these permissions allow or disallow)?
    (c) What are the possible permissions of a directory (and what do these permissions allow or disallow)?
    (d) What happens if, while in v i , you type control-z ?
    (e) How do you recover your v i session after a control-z?
    (f) How do you make a new copy (named f f 2 ) of a file f f l ?
    (g) How do you make a new copy of all the files in a directory Ddl, with all these files stored in a
    new directory named Dd2 ? A one-line command can do it.
    (f) How can you display a file ff 1 without opening it with v i ? (Look up the command cat.)
  2. Fr?d?ric B Guest

    Fr?d?ric B
    Need answers for an computer duty ? ;)

    1-a) ls -l name of file.
    1-b) Read (r), Write(w), Execute(x)
    Be logical for permission, and you'll find what are possible ;)

    man chmod could help you too ;)

    c and d ? Don't you use vi for a while, sorry.

    f) cp ff1 ff2
    g) cp -r directory1 directory2

    And your last question : cat name of file.

    Look at man pages, they're helpful !
Loading...

Share This Page