Question

1- ls command is used to display your current directory. [True or False] 2- Read permission...

1- ls command is used to display your current directory. [True or False]

2- Read permission on a directory allows users to switch to it with the cd command. [True of False]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. True

ls can be used to display directory

example

Here Directory HomeworkLib has 2 folder New folder , HomeworkLib and one file maxMin

snehkuma-mac:HomeworkLib snehkuma$ ls

New folder HomeworkLib maxMin

snehkuma-mac:HomeworkLib snehkuma$

2. False Read Permission does not allow user to switch to directory

example

snehkuma-mac:HomeworkLib snehkuma$ chmod 000 HomeworkLib/ . //Removing all permission from folder

snehkuma-mac:HomeworkLib snehkuma$ cd HomeworkLib/ . //switch to HomeworkLib folder

-bash: cd: HomeworkLib/: Permission denied //permission denied

snehkuma-mac:HomeworkLib snehkuma$ chmod 222 HomeworkLib/ //now give the read permission

snehkuma-mac:HomeworkLib snehkuma$ cd HomeworkLib/ //switch to HomeworkLib folder

-bash: cd: HomeworkLib/: Permission denied    //permission denied

snehkuma-mac:HomeworkLib snehkuma$ chmod 111 HomeworkLib/    //now give the execute permission

snehkuma-mac:HomeworkLib snehkuma$ cd HomeworkLib/     //switch to HomeworkLib folder

snehkuma-mac:HomeworkLib snehkuma$ //successfully switched

Add a comment
Know the answer?
Add Answer to:
1- ls command is used to display your current directory. [True or False] 2- Read permission...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • a) How would you use the ls command to display all of the files/directories in the...

    a) How would you use the ls command to display all of the files/directories in the directory ‘/sbin’ that start with ‘bl’? b) How would you use the ls command to display all of the files/directories in your current directory that contain the word ‘grade’ somewhere in the name and end with ‘.pdf’? c) How would you use the ls command to display all of the files/directories in your current directory that are any two characters followed by the file...

  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...

  • A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not...

    A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not really a stream of characters and doesn't contain anything at all. True False Relative pathnames begin with the root directory. True False Running the ls -a command uniquely identifies directories and binary executables. True False What is the result of running mkdir -p share/man/cat1 from the command line? a. It creates the directory share. b. It creates the directory share/man. c. It creates the...

  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory Select the correct find command string below that will accomplish this. find /etc-name 'resolv.conf -cat D find /etc-name 'resolv.conf -exec cat 0 find. -name 'resolv.conf -exec cat 0\ find /-name 'resolv.conf' -exec cat 0 QUESTION 2 What find command...

  • 1. Navigate to your home directory by typing cd. Now type ls and notice that there...

    1. Navigate to your home directory by typing cd. Now type ls and notice that there is a subdirectory called Downloads. Now navigate to the root of the file system by typing cd /. From here, which single command would you use to navigate directly to the Downloads folder that is located in your home directory? The output of the command would be as follows: 2. From the Downloads directory which single command would you use to navigate back up...

  • 1.Write a find command that will display the inode number of all files in the working...

    1.Write a find command that will display the inode number of all files in the working directory (only) that contain the string "#include". 2.Write an ls command with a glob specification that will list the names of all files in the working directory that are exactly 10 characters long, begin with w, x, y, or z, and do not contain a "." character (i.e. no file extension). 3.Write an ls command with a glob specification that will list the names...

  • Open Command Prompt typing CMD command in your Search window. Change the directory from current to...

    Open Command Prompt typing CMD command in your Search window. Change the directory from current to root (C:). Make a new directory called CIS165_Your Last Name (example: CIS165_Nossa). Within this directory, make subdirectories called Can1 and Can2. Verify the created directory and subdirectories using particular command. Under Can1 subdirectory creates three files called Jam.txt, Milk.txt and Juice.txt. Verify that you created these files using particular command. Move Jam.txt file from the Can1 subdirectory to the Can2 folder. Compare using special...

  • Question 1) Copy file called sortfile from my home directory. The file contains three columns of...

    Question 1) Copy file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator. Will the following command sort the file on the group name field? sort -t! -k3 sortfile A) Yes B) No Question 2) Copy the file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field...

  • 1.Below is the output of the command ls –l report -rw-rw-r--+ 1 max pubs 9537 01-12...

    1.Below is the output of the command ls –l report -rw-rw-r--+ 1 max pubs 9537 01-12 23:17 report Explain the meaning of the first field (i.e. -rw-rw-r--+) 2.Provide the command to modify the permissions on the file report above so that the user sam has read-only permission, and the user zach has read & write permissions 3.Provide the command to remove the rule that gives sam permission to access the file report

  • 1. Write the command to set the following permissions on a script file with the following...

    1. Write the command to set the following permissions on a script file with the following name; myscript.sh Owner: full access; read, write and execute Group: read and execute Other: no access 2. Create a new file with the name "myfirstscript.sh". Write a new script that performs the following tasks in sequence; Display the usernames of currently logged in users; sorted from a-z HINT: You will need to filter the output of the whocommand Display a list of usernames who...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT