Question

this is bash scripting. a. When a file is created on Linux Operating System, What are...

this is bash scripting.

a. When a file is created on Linux Operating System, What are the default permissions of the file?

b. Write a command to find the total disk space used by a specific user on linux system?

c. what is "s" permission bit in a file?

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

a) When a file is created on the Linux Operating System, default permissions of the file is 644.

b) Command to find the total disk space used by a specific user on a Linux system:

du -shc /home/*

c) s (setuid) means set user ID upon execution, which tells the OS to execute that program with the userid of its owner. This is typically used with files owned by root to allow normal users to execute them as root with no external tools (such as sudo).

Add a comment
Know the answer?
Add Answer to:
this is bash scripting. a. When a file is created on Linux Operating System, What are...
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
  • Problem 1 Write a BASH script to create a user account from the Linux system on...

    Problem 1 Write a BASH script to create a user account from the Linux system on which your script is run. The script should process two positional parameters. First positional parameter is supposed to be a string with a user name (e.g., user_name) Second positional parameter is supposed to be a string with a user password (e.g., user_password) In your script: Check if two positional parameters were passed to your script when it was invoked If NOT, print an appropriate...

  • 2. [5] What is the command used to limit the default permissions for new file and...

    2. [5] What is the command used to limit the default permissions for new file and new directory? Please write the command to set the default file permission to -rw- and default directory permission to drwx--x-x

  • Linux j. What is the command or commands used to list the top 10 file who...

    Linux j. What is the command or commands used to list the top 10 file who use the most disk space? What is this command(s) and show its output?

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

  • Which of the following is NOT a feature of the Linux operating system? A. It can...

    Which of the following is NOT a feature of the Linux operating system? A. It can be used as a command-line interface. B. It can be used through a graphical user interface. C. It is desktop compatible. D. It can be used only with proprietary software.

  • Question 11     You are in the oranges directory. Write the command to copy the mandarin...

    Question 11     You are in the oranges directory. Write the command to copy the mandarin file to the apples directory. Use a relative path. 2 points Question 12     Which command do you use to rename files and directories?        A.         uname        B.         mv        C.         rn        D.         rename 2 points Question 13     You are in the oranges directory. Write the command to list...

  • These questions involve the linux operating system. Please complete the questions that you can. Thanks Question...

    These questions involve the linux operating system. Please complete the questions that you can. Thanks Question 21 (2 points) In the lab, you used the parameter in conjunction with the su command (for example, su -johndoc). It is used to provide an enviranment similar to what the user would expect had the user logged in directly Access the Linux man pages for the su command and provide the definition for the-parameter Question 22 (1 point) Provide the command used to...

  • Hi im trying too do my Linux homework and I'm stuck on some questions 1. Using...

    Hi im trying too do my Linux homework and I'm stuck on some questions 1. Using the utility chmod, permissions can be set on the owner, group, or others (aka "the world" or "everyone else"). True or False 2. Changing the permissions on the script file someScriptFile.sh to be write and read only will allow you to execute it (if it is a valid shell script with no errors) using ./someScriptFile.sh True or False 3. To set the permissions for...

  • UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03...

    UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03 File Permissions In this lab we will: learn about file permissions learn to create symbolic links and hard links Utilities that will be utilized in this Lab: us, cd, less, cat touch, chmod id umask, mkdir, In, echo and redirection Users and Groups Linux supports several methods of controlling access to files an directories. In this lab we are going to learn the traditional...

  • Systems Architecture 7--> By default, what do most file management and operating do when a user...

    Systems Architecture 7--> By default, what do most file management and operating do when a user deletes a file? A) mark the storage allocation unit as free and the directory entry as unused B) overwrite all allocated storage with spaces or other null content C) Remove the entry from secondary storage   D) Mark the directory entry as used 8--> Linux file access control types include________ A) read, write and change B) read, modify and list C) read, write and execute...

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