do the following: ● Write a suitable command to a user cron job, will run "backup.sh" script at 8 am every Friday. ● Write a suitable command to display the list
Q: In this hands-on project, you create a basic shell script and execute it on the system.1. Switch to…
A: 4. After creating myscript file and then executing ls -l myscript gives the information about…
Q: You have modified the /etc/aliases file to include a new e-mail alias. However, when yousend e-mail…
A: Modifying the alias file After the modification to the file, then the command for new alterations…
Q: 1. Create a command that would create a new file with a dynamically created file name that is…
A: As you have posted multiple questions, we will solve the first question for you. As you have not…
Q: Write a shell script that performs the task of the below shell command. man ls | grep ls > file.txt
A: I have provided a solution in step2.
Q: Following the execution of the command umask 731, the permissions of all newly created files and…
A: Introduction; Permissions: In Linux operating system, the permissions are written in the format…
Q: In /etc/passwd, you may lock a user account by setting the default login shell to an invalid shell.…
A: Use the usermod -L or password -l commands to disable a user's account. When disabling or locking…
Q: Create a simple BASH shell script that executes the commands specified by you, using a number of…
A: Bash (also known as Bourne Again Shell) is an interpreter for shell commands. A shell interpreter…
Q: Write a bash script that would reside in the test directory, would take an integer as its sole…
A: Write a bash script that would reside in the test directory, would take an integer as its sole…
Q: Which of the following files is always executed immediately after any user logs in to aLinux system…
A: Explanation: - If this file occurs, in addition, this file is readable, the login shell accomplishes…
Q: what are the commands to send email to issue in the mail promot to achieve the following • Read the…
A: There are different types of commands that can be used to send mail from the terminal, like…
Q: Write the command that can be used to perform the following:a. Compress the symbolic link…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
Q: In this question, you will develop your own version of shell. Your shell will execute commands given…
A: The ask is to do the following: - Create a user shell. - Takes user input for command to execute and…
Q: What does the following command do? cat vuln exploit> server
A: The correct answer is d. It concatenates the files vuln and exploit and redirects the output to a…
Q: Create a text file called Tresults" (without quotes) in the root directory using the touch command.…
A: Please find the answer below :
Q: Write a command that changes the owner of all files and subdirectories contained in…
A: chown -R gabbo /home/krustytheclown Here -R stands for recursive to operate on files and directories…
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: Note that the "touch" command creates a new empty file. Using this command, and some others, which…
A: Below I have provided the solution to the given question with proper explanation.
Q: Create a PowerShell script named "prompts.ps1" within the "Requirements1" folder. For the first…
A: # FirstName LastName StudentID while($true){$input= Read-Host "Enter the option 1-5"if ($input -eq…
Q: In this question, you will develop your own version of shell. Your shell will execute commands given…
A: "due to our policy, we can solve only the first 3 parts please repost the other parts and mention…
Q: How do you create 10 student users in Linux by adding a file to each of their home directories…
A: The usermod function in Linux can be used to add a user to a group. Use the -a -G flags to add a…
Q: Assuming we are in the C:\Users\Admin\Desktop directory. We can remove the Archive attribute of all…
A: explanation: ATTRIB .\Test\* -A Here: attrib is the command .\Test\* - is to select everything in…
Q: c shell implemented
A: #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include…
Q: n Linux Create a simple backup script to create a backup of the directory “Script2”. This script…
A: Shell script #!/bin/bash source=/home/script2dest=/home/backup echo "start copying files..." for…
Q: Write a bash script that will run the command getData1.sh and getData2.sh to read values from two…
A: How to open/import a text CSV file One can read comma separated CSV file. Start calc Choose File…
Q: Using the file “passwd.txt" create a script that will create a new file that contains (per line):…
A: 1. first create passwd.txt using "cat /etc/passwd > passwd.txt" 2. In python script i. open…
Q: Which of the following option of Is command can be used to view hidden files? A. B. C.-a D.-i Which…
A: Answer:
Q: Consider the file scriptfile with the following permissions: rwxr-xr—- Who can run each of the…
A: The, given information is: USER GROUP OTHER $ source scriptfile $…
Q: write the code to lookup, add and remove phone entries from the phonebook text file . These are the…
A: #!/bin/bash operation=$1name=$2 if [ -z "$operation" ] || [ -z "$name" ]then echo "The…
Q: Write the BASH commands that accomplish the following tasks: 1) Display the name of the current…
A: 1.echo "$SHELL" or echo $SHELL (without double quotes also 2.chsh --list-shell or chsh -l 3.history…
Q: Execute the following LINUX commands. Take the screen shot of each answer and paste after the…
A: The Linux command to do given operations are performed. Note: Dear user, as per company policy we…
Q: What do you have to do to the script to be able to execute it? Why does the script use the read…
A: Assuming the name of your file is "filename.sh" :1. Make the file executable:$ chmod +x filename.sh
Q: A client sends you two files containing two shapes to be used in the design of a logo. Your computer…
A: Actually, given information: A client sends you two files containing two shapes to be used in the…
Q: write the code to lookup, add and remove phone entries from the phonebook text file . These are the…
A: #!/bin/bash operation=$1name=$2 if [ -z "$operation" ] || [ -z "$name" ]then echo "The…
Q: Execute a command that will display the contents of the LotsofPeople.txt file that exists at the…
A: A large number of commands are available on Cisco routers, as well as many different protocols and…
Q: We can send output of a command to append a text file (keeping the old data in the file) with the…
A: The syntax for sending the output of a command to append a text file is: >> filename in…
Q: Write a utility program that combines the files together into anew file using the following…
A: Below is the required Java program: - Approach: - Import the header files. Define the main class.…
Q: 1. At user home directory, write a MSDOS command to create a directory with your ID [1122] 2. write…
A: To create a directory in MS-DOS, use the md or mkdir MS-DOS command. For example, below we are…
Q: a. Write a command to install the package ABCD by using rpm. b. Write a command…
A: Note: Since we only answer up to 3 sub-parts, we’ll answer the first 3. Please resubmit the question…
Q: A file has the following permissions: r-- --x-w-. The command chmod 143 would havethe same effect as…
A: Permissions: In Linux operating system, the permissions are represented with the help of notions of…
Q: Create a file in Kali Linux root directory with the name MyTest.txt. a. Generate a hash value for…
A: The first file input for MyTest.txt file is "Hello" . Then i generated a sha1sum value. Then made…
Q: a. Write a command to append the text “This is Assessment exam” into demo.txt file with save and…
A: a. Required Command: echo "This is Assessment exam" >> demo.txt b. Required Command:…
Q: A user typed in the command pwd and saw the output: /home/jim/sales/pending. Howcould that user…
A: "cd" command: Linux comes with huge number of commands that specify some unique functionality.…
Q: This needs to be done using Linux bash shell script. 2. Write a shell script display_digits to…
A: Approach - Take input from users. Count of the digits. Check for integer Handle + and – symbols…
Q: Cmdlets are lightweight commands used in the__________________ Shell environment. a. Korn…
A: Cmdlet also known as Command let and cmdlets are the lightweight commands
Q: What are two ways you can execute a shell script when you do not have execute permission for the…
A: Actually, script is a program or sequence of instructions.
Q: n an .sh file, include grep commands to find the following lines. All professors who teach an…
A: The command awk '/regex/{p=N} p > 0 {print $0; p--}' filename We have n as 4 as the file consists…
Q: a BASH command that concatenates the value of the variable FILENAME with the value of the variable…
A: Bash is a command language interpreter. It is widely available on various operating systems and is a…
Q: You receive and Error Stating "The file must be unlocked before execution" while attempting to…
A: The solution to the problem is below.
Q: Write a bash script that accepts aperson’s name as a command-line argument and simply prints out the…
A: #!/bin/bash if [ "$1" != "" ]; then #checking if command line is empty if not printing greetings…
Q: In Linux, text processing and text analysis are essential. The following file contains the history…
A: Below i have shown:
Write a shell script named “myscript.sh” to do the following:
● Write a suitable command to a user cron job, will run "backup.sh" script at 8 am every Friday.
● Write a suitable command to display the list of all cron jobs and save in a text file “mycron.txt” in your current directory
Step by step
Solved in 2 steps
- Create a file named "YournameTask03.txt". Change its permission using absolute(numeric) mode. so that it has ONLY executed permission of owner and group ONLY. Solve this task by using shell scriptingPlease log in as “root” and create a new directory called “myScripts”on your desktop (i.e., /root/Desktop).Please leave a comment with your name at the end of each of your script files. You can use “#” to insertcomments in your script. Write a script and save it as /root/Desktop/exercise1. This script performs the followingfunctions:a. Asks the user for the length and width (in feet) of a rectangular roomb. Calculates the area of the roomc. Displays the result to the userRun the script in terminal using the command: bash /root/Desktop/exercise1 SO I HAVE WROTE THE SCRIPT BUT I DON'T KNOW HOW TO SAVE IT TO EXERCISE1 AND DISPLAY IT, JUST NEED TELL ME HOW TO DO IT , NO NEED SCRIPTCreate a text file called "results" (without quotes) in the root directory using the touch command. Then, using a suitable text editor such as vi, edit "results" to include the following lines where xxx are your details. Save the file when completed. Set sticky bit to the file created. Student ID: xxx Name of Course: Network and System Administration NRIC/Passport xxx Subject Code: NET2103 Date: December 2021 Write the appropriate LINUX command line(s), show the steps for achieving the task above.
- CSE460 MID ASSIGNMENT Given the Linux shell command descriptions, please write down the corresponding shell commands in a terminal window. • Copy paste the shell commands(using Control+shift+C) to do the following • give screenshots so that I can understand b) Write a shell script, which first ask the user for a number. then, -> Print "Panther" if the number is divided by 10 but is neither a multiple of 4 and neither a multiple of 5. -> Print "Oodama_Rasengan" if the number is a multiple of 5 or 6, but not both. -> Print "Rasen_Shuriken" if the number is a multiple of both 5 and 6Write a Java GUI application that will keep track of a user’s contact list. The application must contain the contact mobile number, work number and email address. Q.3.1 On the form, create a list box that will allow the user to select a contact name, which is populated from a text file. Also create a search button that when clicked will display the mobile number, work number and email address. Q.3.2 Create a sequential file (contacts.txt) that contains data for the following fields: The contact name; The contact mobile number; The contact work number; The contact email address. Q.3.3 Load the data from the contacts.txt file and populate the list box with the contact names. Include a feature to inform the user on the amount of contacts. Contacts: Joe Bloggs082 123 1234011 123 1234jb@gmail.comJeff Jones072 157 1545021 555 5555jj@gmail.comExecute a command that will display the contents of the LotsofPeople.txt file that exists at the root of your activities disk; the output must be sorted by profession and must pause between full screens of ndıno
- The following shell script adds entries to a file named journal-file in your home directory. This script helps you keep track of phone conversations and meetings. $ cat journal # journal: add journal entries to the file # $HOME/journal-file file=$HOME/journal-file date >> $file echo -n "Enter name of person or group: " read name echo "$name" >> $file echo >> $file cat >> $file echo "----------------------------------------------------" >> $file echo >> $file What do you have to do to the script to be able to execute it? Why does the script use the read builtin the first time it accepts input from the terminal and the cat utility the second time?IN PYTHON please, Attached to the assignment is a test file: lesson4_folderexample.txt Download lesson4_folderexample.txt - External clients have added spaces throughout the folder names by: internal workflow conflict, user mistake, etc - We determined the only issue is that there are spaces, but need to confirm which folders - Write a script that removed all spaces, reports the fixed string, and reports on console which ones needed fixing and which were fine. ..................................................................................................................................................................................................................... This is inside the txt file: /offsideStorage1/production/star wars/reel1/partA/1920x1080 /offsideStorage4/production/starwars/reel - - 1/VFX/Hydraulx /offsideStorage1/production/starwars/reel1/partB/pickups/1920x1080 /offsideStorage1/production/starwars/reel1/VFX/ Framestore…Suppose you want to compile your code into an executable name lab, and you have constructed a valid CMakeLists.txt file, which is the correct command to generate a valid Makefile? cmake3 . make ./lab None of the above
- Below is a sequence of shell commands that we typed into a bash terminal window on a Linux machine and some of the output that was produced. Your job is to write the output produced by the commands in the sequence. The commands are executed consecutively and changes made by one command may affect the output produced by later commands. First Create a Directory and Rename as Name_AridNo like (Ali_18-Arid-102) and then execute the following commands and show output. Shell > pwd /home/me/test > ls -F hw1 hw1.bak tmp/ > bash > touch it > cd tmp > ls –F justme.txt > echo “Dear Ali” > diary > cat ‘Name_AridNo’ /etc/hosts > pwdYou can configure your shell by editing the file~/.bashrc for instance to change the value of$ PS1 and $PAth permenatrly true or falseLinux commands: In this part of the lab, you will run Linux commands, capture their output in a format that shows the command and its results in an easy way (command-> new line-> output - > new line-> new line-> command, .... etc). In your output file, make sure to print out the name of your user account and todays date. It should look something like this "My Student Account is " , "Todays Date is ". Can someone please help with this ?