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. Similar Threads: linux commands
    Forum Title Date
    Linux Discussion Can i use the ubuntu linux commands on windows XP? Sep 11, 2008
    Linux Discussion How do I run multiple commands on a Unix/Linux system without a GUI? Jul 3, 2008
    Linux Discussion Any links to get demos of running Linux commands using Terminal!? Jun 11, 2008
    Linux Discussion Linux commands? May 7, 2008
    Linux Discussion Linux commands - need a reminder? May 5, 2008
    Linux Discussion Linux Commands? May 5, 2008
    Linux Discussion Linux Commands? May 5, 2008
    Linux Discussion LInux commands? May 5, 2008
    Linux Discussion linux commands? May 5, 2008
    Linux Discussion Linux Commands? May 4, 2008

  3. 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 !

Share This Page