pecial usage regarding file permission. can you modify the permission by using OCTAL number?
Q: You are in the same group as Sam, Tom, Bill, and so on. The permissions field on a file you own…
A: -rwxr-x--x The string of 10 characters on the left shows the mode. first character: '-' indicates…
Q: Which header file contains functions for dynamic memory allocation? stdlib.h O stdio.h O time.h O…
A: The answer is
Q: Which of the following statements is true for built-in exceptions? O Even if the code can raise an…
A: All exceptions are the instance of the class which is derived from the baseException. Built in…
Q: Write a complete bash script that takes a filename as input using the read command. The script first…
A: #!/bin/bash read filenameif [ -e "$filename" ]then echo "File exists"else echo "File…
Q: UNIX Systems Programming Write a shell script that will act as a supermarket shopping data entry…
A: #!/bin/bashecho "Item name"read itemnameecho "Item cost"read itemcostecho "Number of items…
Q: Which of the following statements are true? (Choose all that apply.)a. Quotas can only limit user…
A: In a Linux operating system, when the number of users is more, the hard disk should capable of…
Q: When we use this command in a batch file, the user must pick from the available options because…
A: IF ELSE command in batch file is used to check condition i.e., IF condition is true then certain…
Q: Assume we copied a TR.gif into directory “image” within related project’s workspace and used…
A:
Q: Using JavaFX, create a simple calculator application, like the following: The operators is ( + : "…
A: Given that create a simple calculator in javaFX. Basic calculator code :- package calculator;…
Q: Using PyCharm, create a new Project lab12. Under lab12 create a new Directory exercise,then create a…
A: class Name(): def __init__(self,name=""): self.words=name.split() self.count = 0…
Q: Assume that you have a CoffeeDB database in your Java DB System. Coffee is one table. Write a Java…
A: Java used to answer this question
Q: Using JavaFX, create a simple calculator application, like the following: The operators is ( + : "…
A: The operators is ( + : " addition process" , -:subtraction process", *:"multiplication process" ,…
Q: The operators is ( + : " addition process" , -:subtraction process", *:"multiplication process" ,…
A: It has add, sub,multiply, divide, clear, history function to check two numbers can perform or not…
Q: class LPMDataServicesException(Exception): pass def retry(ExceptionToCheck, default=None,…
A: I have answered this question in step 2.
Q: Task 1 Create a method that Asks the user for how many parent directory levels to go up by Only…
A: Note: Answering the first question and in python as no language is mentioned. Input : Input number…
Q: The following commands use redirections. Assuming that you have all the relevant permissions over…
A: Introduction: Redirection: Many Linux commands produce output that is pushed to the screen, they are…
Q: Which of the following statements is the reason for avoiding the use of a catch-all except clause? O…
A: Catch-all except is used to capture all exception by the program It is used when all exception is…
Q: The names Sam, Tom, Bill, and so on are in the same group as you. The permissions column on a file…
A: To discuss who has the access to a file answer with value on permission column is ----r-----.
Q: 1. Which of the following is true in case of destructors I. Destructor function is automatically…
A: Answers:
Q: Using JavaFX, create a simple calculator application, like the following: | Calculator Simple…
A: Using JavaFX, create a simple calculator application, like the following: The operators is ( + : "…
Q: #phyton ''' Please help me to solve this error. Error: Traceback (most recent call last): File…
A: Error comes due this line print('invalid input! Must be posative')z = int(input('Enter 3rd posative…
Q: Write a program that reads each word from the attached text file (words_for_homework.txt) and writes…
A: 1. Create a new project in netbeans 2. Create new java file called Main.java 3. Copy and paste the…
Q: modify minishell.c to run who, ls, and date with option. who will show the count of users, ls will…
A: Copyable code: #include <stdio.h>#include <unistd.h>#include <sys/types.h>#include…
Q: Takes(studentid, courseCode, mark) Course(courseCode, title, credits,deptno) Student(studentld,…
A:
Q: A function used to open a file. fopen() O fclose() fwrite() O fread() What is the correct statement…
A: Let us see the answer:- 1) the correct answer is (a) i.e. fopen() fopen is a standard function that…
Q: Q14: Assume we copied a TR.gifinto directory "image" within related project's workspace and used…
A: c. T/T/F/F file.exists(): returns TRUE, if file exists file.canRead(): returns TRUE, if application…
Q: en the 2 class files below, if there is a compiling (syntax) error found at rtain line, what…
A: Program Approach/Description: 1- There are two packages dataBase and accounting. 2- The employee…
Q: Create a JSON file named invoice.json and write into it the following dictionary: invoice_dict = {*…
A: Question given: Create a JSON file that stores details about invoices. Read this file in…
Q: Using PyCharm, create a new Project lab12. Under lab12 create a new Directory exercise, then create…
A: PROGRAM: #Defining class class Name(): #Defining constructor def __init__(self,name=""):…
Q: sing JavaFX, create a simple calculator application, like the following: The operators is ( + : "…
A: java program is given below : /********************************************* Save this file as…
Q: Using JavaFX, create a simple calculator application, like the following: Notes: The operators is…
A: Code-
Q: Using JavaFX, create a simple calculator application, like the following 1. The operators is ( + :…
A: Given, Create simple calculator using JavaFX
Q: Hello! I am trying to write a program in Pynthon. Need help. Requirements: Write a .py file like…
A: Program Plan:Import required packagesPrompt the path and the number of characters to delete from the…
Q: Which option replaces the YYY with the correct example for defining a custom exception?
A: Q: Which option replaces the YYY with the correct example for defining a custom exception?
Q: How do change the code so that one or more command-line arguments are accepted as well as outputting…
A: Find the following program:
Q: Modify rnfile such that it will keep a copy of the old existing file (if available) before the…
A: Given: Modify rnfile such that it will keep a copy of the old existing file (if available) before…
Q: Utilize looping to make your Python script for Functionality 2 [You should allow users to enter…
A: The program contains list for employeeName, employeeSSN, employeePhone, employeeEmail,…
Q: ls-l command
A: Given :- Linux and its command for file permissions Need to write a command which will display…
Q: 18 Which of the following statements is true? O The code in the finally block is only executed if an…
A:
Q: 12.2 An instance of describes system errors. If this type of error occurs, there is little you can…
A: Task :- Choose the correct option for given questions. I can only see 12.2 and 12.3 clearly, so i…
Q: Utilize looping to make your Python script for Functionality 2 You should allow users to enter…
A: According to the information given:- We have to create save the employee information
Q: Using JavaFX, create a simple calculator application, like the following: The operators is ( + : "…
A: Using JavaFX, create a simple calculator application, like the following: The operators is ( + : "…
Q: For example, if you create a file named: "users.txt" that contains these user names: daniel moshe…
A: Net User : Net User is an order line apparatus that permits framework chairmen to oversee client…
Q: sing JAVA, Create a File Menu in your GUI Add a file menu to your BulbGUI with options to open any…
A: The code is
Q: The following sequence of operations were performed on the file "src/CreateMe.java". What state is…
A: Task : Choose the correct answer for given question.
Q: write a batch file which sort a table by column where the user can choose sort by any column.
A: data.txt ID Name Weight Long Class Age012 Eric 56 156 7 13045…
Q: Hello, I am struggling to write a program in Python for a following problem: Write a file ( .py). In…
A: Solution:Given data,The python code to strips the first letters from all file names in a directory…
Q: Suppose you have written JavaScript code to store a FileReader object in the myReader variable. How…
A: myReader.onload = function() { commands } is use to trigger an anonymous function to…
Q: Please answer properly with output screenshot must Where is the error in this code?
A: Given Code: from telethon.sync import TelegramClientfrom telethon.tl.functions.messages import…
Part 2
OCTAL numbers have special usage regarding file permission.
can you modify the permission by using OCTAL number?
Assuming current working directory is
"/home/test1/Exam1" and "rwxrw _r_ _" is the file
permission setting of "Hello.java" .
Remove the execution permission from the owner and add write permission to the other users in the other group
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Java OOP Write a complete address book maintenance application. The user of the program has four options: Add a new person, delete a person, modify the data of a person, and search for a person by giving the name. Use the AddressBook class, either the original one from the chapter or the modified one from the previous exercises. You have to decide how to allow the user to enter the values for a new person, display person information, and so forth.If wrong answer this time will downvote it Create a class with a static main that tests the ability to resolve and print a Path: • Create an instance of a FileSystem class. • Resolve an instance of a Path interface from a directory path and filename. • Print the constructed Path with System.out.println() method. 2. Create a class with a static main that tests the ability to resolve and print a Path: • Create an array of Path class. • Instantiate instances of Path with absolute and relative paths. • Print the constructed elements of the array of Path class with System.out.println() method. 3. Create a class to test serialisation class that implements serializable, it should implement the following: • A static void method that serialises an object. • A static void method that deserializes an object. • A static main method that tests the two by moving an object from one to the otherWe will use the file classlist.txt. Note that it contains a list of usernames. 3. Write a script called finduser that is to be called as follows, where classlist is the name of the classlist file, and username is a particular student's username, either first name or last time. ./finduser classlist username The script should check that the correct number of arguments was received and print an error message if not, check whether the classlist file exists and print an error message if not, print the line of the given username in the classlist file If you have not been doing so all along, you should now add some comments to your script and thoroughly test it! 4. Write the script into your lab report.
- How to code this assignment JSON objects. Hint: Work on the methods in the order they are found in the documentation below. def swap_value(file_path: str, key: str, replacement): """ This function will be given a file path and a key. The file that the file path points to contains a json object. This function should, load the data in the file. Then replace the value associated with the key with replacement value. Then it should overwrite the current data in the file with the new changes. Finally it should return the old value. :param file_path: A path to file :param key: A key value in the JSON object saved in the file :param replacement: The new value that the key will be mapped to :return: The old value that the key used to be mapped to """ def update_transactions(file_path: str, transaction_list: list): """ You are part of a team tasked to create an application that helps bankers by saving their transactions for them. Your job…Unix assignment Purpose: The purpose of this assignment is to use various concepts of the C Shell. 0. Change your default login shell to the C Shell. 1. Create a .cshrc file in your home directory that will do the following: * Create the alias (lsall) that will do all of the following: display the date, and a recursive long list of all files in a directory. * Create the alias (whoson) that will display the date and a sorted list of users logged in. * Declare the LOCAL variable that controls the size of your history list to the value 200. * Declare the shell variable that will cause the C Shell to send a message to your terminal whenever one of your background commands complete. 2. Create a .login file in your home directory to do the following. * Declare the GLOBAL Terminal Type variable to the value vt100. Display the value of the variable. Logout and log back in to make sure your .cshrc and .login files are automatically executed. Create a lab8.scr…Utilize looping to make your Python script for Functionality 2 You should allow users to enter information for five employees at the same time, where the first employee information entry is saved in index [0] and the second entry is saved in index [1], and so on. You want to make sure to enforce the user to enter the following employee information: employeeName, employeeSSN, employeePhone, employeeEmail, employeeSalary. After the user finishes entering the last employee information, they should get a message to allow them to print specific employee information from the saved list. The user can enter values between 1 and 5, where 1 will return the employee information saved in the list index [0], 2 will return the employee information saved in the list index [1] and so on.]to run constantly. while having it run constantly Add Employee – this functionality will allow users to add new employee to the system. View all Employees – this functionality will view all employees in the system.…
- In this assignment, you will create a Java program to search recursively for files in a directory.• The program must take two command line parameters. First parameter is the folder to search for. Thesecond parameter is the filename to look for, which may only be a partial name.• If incorrect number of parameters are given, your program should print an error message and show thecorrect format.• Your program must search recursively in the given directory for the files whose name contains the givenfilename. Once a match is found, your program should print the full path of the file, followed by a newline.• You can implement everything in the main class. You need define a recursive method such as:public static search(File sourceFolder, String filename)For each subfolder in sourceFolder, you recursively call the method to search.• A sample run of the program may look like this://The following command line example searches any file with “Assignment” in its name%java FuAssign7.FuAssignment7…Utilize looping to make your Python script for Functionality 2 [You should allow users to enter information for five employees at the same time, where the first employee information entry is saved in index [0] and the second entry is saved in index [1], and so on. You want to make sure to enforce the user to enter the following employee information: employeeName, employeeSSN, employeePhone, employeeEmail, employeeSalary. After the user finishes entering the last employee information, they should get a message to allow them to print specific employee information from the saved list. The user can enter values between 1 and 5, where 1 will return the employee information saved in the list index [0], 2 will return the employee information saved in the list index [1] and so on.]to run constantly. while having it run constantly Add Employee – this functionality will allow users to add new employee to the system. View all Employees – this functionality will view all employees in the system.…Need help with implementing of this program in C# by using Interface. Task: RenameFile Create an interface IUndoable to represent actions that can be reversed. Create a class that renames a file, and make it undoable.
- The Directory class has a list of names in it. You should use dynamic memory to create anarray upon instantiation. You should create a copy constructor for the directory class and anassignment operator (i.e. operator=()). You should create a function called fillDirectory whichaccepts a size for the directory and the names for it both of which should be given by the user.In main, create directory1 and fill it with information. Use the assignment operator=() to setdirectory2 equal to directory1. This is in c++In this assignment, you will create a Java program to read undergraduate and graduate students from an input file, sort them, and write them to an output file. This assignment is a follow up of assignment 5. Like assignment 5, your program will read from an input file and write to an output file. The input file name and the output file name are passed in as the first and second arguments at command line, respectively. Unlike assignment 5, the Student objects are sorted before they are written to the output file. • The program must implement a main class, three student classes (Student, UndergradStudent, GradStudent), and a Comparator class called StudentIDComparator. • The StudentIDComparator class must implement the java.util.Comparator interface, and override the compare() method. Since the Comparator interface is a generic interface, you must specify Student as the type parameter when defining the StudentIDComparator class, i.e., public class StudentIDComparator implements…Create two Stacks S1 and S2 on two different arrays. Push and Pop operations on S1and S2 are to be handled by separate Threads T1 and T2. Create a class called myException to override the toString() method. Raise the exception when size of S1 and S2 becomes equal. Note: please write a proper java program for the above syntax