What do the following commands


1. What do the following commands do ? Explain 
a. $ mv abc cbs
. what would happen if in the above "cbs" is directory ?
. What would happen if in the above in "cbs" there is already a file abc ?
. what would happen if in the above abc is a directory ?

b. $ cp CPU file /etc/passwd /tmp

2. Write "find" commands for the following. No output needed.

a. find all files from your home directory that have the name "core"
b. find all files from /tmp directory that have a size > 5120 bytes
c. find all files from /usr/src that are owned by bin
d. find all files from the current directory that have inode number as 3000
e. find all files from /tmp that are directories
f. find all files from /dev that are character special files.

3. Write commands for the following using chmod. Do not use numbers for permissions. ie DO NOT USE 444 or 664 for permission.
No output needed.

a. to set the permissions of the directory $HOME/ctmp to read only for user
read and write for group and no perms for other

b. to add read permissions to group and other for any file

4. Write a command to create a symlink to $HOME/homework in /tmp
Explain what will happen after the operation, if the link file is removed.
Explain what will happen if $HOME/homework is removed.

5. Convert the following file permissions to letter format ie using r , w, x
a. 444
b. 655
c. 700
d. 055 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What do the following commands
Reference No:- TGS0568220

Expected delivery within 24 Hours