4- Use echo to display the following exactly: ??\\ 5- When you type passwd, which file is executed? 6- Echo it worked when touch test42 works, and echo it failed when the touch failed. All on one command line as a normal user (not root). Test this line in your home directory and in /bin/ 7- Write a command line that executes rm file55. Your command line should print 'success': file55 is removed, and print 'failed' if there was a problem. 8- Use echo to display Hello followed by your username. (use a bash variable!) echo Hello SUSER.
Q: count the number of files in each of your sub-directories using the for loop, read two numbers and…
A: so first we will write the code for counting the files #!/bin/bash directories=($(/bin/ls -l $1…
Q: After typing the ls –F command, you see the following line in the output:-rw-r-xr- - 1 user1…
A: In this case, User1 has the read and write permission to the file, members of the root group have…
Q: How do I write a script in bash on Mac that prompts the user for a filename with path. Test if the…
A: How do I write a script in bash on Mac that prompts the user for a filename with path. Test if the…
Q: How can we add "C:\Users" directory to the $PSModulePath environment variable in PowerShell? Please…
A: The PSModulePath environment variable The PSModulePath environment variable stores the paths to the…
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: 1. Explain the following unexpected result: $ whereis date date: /bin/date ... $ echo $PATH…
A: Note: We can only answer one question at a time as per the guidelines. Please resubmit the rest of…
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: Q6/ (A)- Answer with True or False and correct the error (5 only) 1- To clear all variables from…
A: We are given True and False type questions related to MATLAB. In Q6 (A), there are multiple…
Q: Problem Write code that when executed in PowerShell, will satisfy the following requirements: •…
A: PoweShell command to get the following output which is given As written in question command can…
Q: In PowerShell, Start-Transcript is a very useful cmdlet that creates a record of all or part of a…
A: Introduction Transcript of start that basically demonstrates about a particular text or alphabet…
Q: What is wrong with the following command string: ls /etc/hosts>listofhostfile ?a. Nothing is…
A: Explanation: File descriptor for was not declared in the given statement. But File descriptor is an…
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: After typing the ls –F command, you notice a filename that ends with an * (asterisk)character. What…
A: Special character and file type: "ls" command is used in Linux to list the files in directory. The…
Q: BELOW MCQ GIVEN ANSWER CAN BE MORE THAN ONE OPTION. PLEASE PROVIDE CORRECT ANSWERS.…
A: ANSWER C
Q: Write necessary bash code to continuously display the main menu that contains the following tasks:…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: you will need to create the following textbook specified files. Use vi to create these files: …
A: The default editor that comes with the UNIX operating system is called vi (visual editor). Using vi…
Q: What is the use of the below set of commands? $disk = Get-CimInstance -ClassName Win32_LogicalDisk…
A: Lets see the solution.
Q: IN linux As a regular user, you can run the command "chmod 777/etc/passwd" to make a…
A: This question comes from Operating System which is a paper of Computer Engineering. Let's discuss it…
Q: Write a complete bash script that asks for a user name and uses the read command to accept the user…
A: To write: To write a bash script that asks for a username and a command to accept it by using who…
Q: Q6. Provide a shell-script that renames all files in the current directory. You will need to add the…
A:
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: Using for loop, write a bash script that must go through all files stored in /etc directory. The…
A: Screenshot Of Code:
Q: Which key allows you to autocomplete an existing filename in Linux when working in the console? Tab…
A: NOTE:“Since you have asked multiple questions, we will solve the first question for you. If you want…
Q: 1.Create an echo command to show the following output exactly as it is shown: $50+$60=$110 2.Copy…
A: As per our guidelines, we are supposed to answer only 1st three parts. Kindly repost the remaining…
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: What command tells cut to output the first five characters of every line from the file practice?
A: In Linux, a file can be created using any of the available text editors or using vi command. To…
Q: Use the mkdir command to add a directory named test2 in your home directory. Use one command to…
A: Answer: The code line for this in UBUNTU are: # Create a new directory test2 in your home directory…
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: in Linux With the chown command, the ownership of a file can only be changed by the root user.…
A: Introduction: in Linux With the chown command, the ownership of a file can only be changed by the…
Q: Which cat command is used to create empty files? i. cp ii. cat iii. touch iv. create
A: Question. Which cat command is used to create empty files? i. cp ii. cat iii. touch iv. create
Q: Write a Bash shell script that displays the following menu and prompts for one-character input to…
A: Code: while truedo clear echo "-------------------------------------------------------"…
Q: After typing the ls –F command, you see the following line in the output: -rw-r-xr- - 1 user1 root…
A:
Q: I can't run my C++ because of this error. How to fix this? jGRASP wedge error: command "g++" not…
A: jGRASP wedge error: command "g++" not found. This error means You either don't have a C++ compiler…
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: 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: 1- To clear all variables from Command window, we type Clear or Clear All. 2- Realmax is the…
A: 1- To clear all variables from Command window, we type Clear or Clear All. (false) When we write…
Q: do the following in the code The shell environment should contain shell=/myshell where /myshell is…
A: Programming is instructing a computer to do something for you with the help of a programming…
Q: Using for loop, write a bash script that must go through all files stored in /etc directory. The…
A: The answer is given below:-
Q: do the following in the code The shell environment should contain shell=/myshell where /myshell is…
A: Actually, given question regarding shell environment.
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: Write the command that can be used to perform the following: Back up the contents of the /var…
A: Since there are multiple questions posted, we will answer for first “4” questions. If you want any…
Q: What are the returned values of the following commands? >>rc_wait=wait(NULL); >>getpid(); >…
A: rc_wait=wait(Null) wait() function return because the status of a child process is available,…
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: You want to find where under the root directory, the file passwd is located. Show the command you…
A: you want to find where under the root directory, the file passwd is located. show the command you…
Q: 7- What is the purpose of using the following code? // GET CONNECTION Connection con; try{ con =…
A: EXPLANATION: - Above code is for established a connection to database using odbc driver. A…
Q: Write Linux command for each question. Please use one single command to do following process. Q4:…
A: Q4) mv myfile.txt file.txt | mv file.txt /ET506 here mv also known as move command will…
Step by step
Solved in 2 steps
- Per guidance from your instructor, in a terminal run the following commands: Check the version of OpenSSL by running: openssl version. Create a text file named txt with any text as its contents. Encrypt this file using AES: openssl enc -aes-256-cbc -salt -in test.txt -out test.enc Encrypt this file using AES and Base64 Encode: Same as above but add –a option and use the output enc file as the input into the decrypt. Why would you Base64 encode a file? Decrypt both of the files. Download or locate 2 image files (shown as pic1.png and pic2.png below). Create MD5 Hash on Pic 1 by running: openssl dgst –md5 pic1.png Create MD5 Hash on Pic 2 by running: openssl dgst –md5 pic2.png What is steganography? How could hashing be used to prevent steganography? Create a password by running: openssl passwd [Your Text Here] Take a screenshot of the demonstration.You have set up a user group named Accounting and have put all employees in the Accounting department in this group, which has been given permission to use the Financial folder on a file server. You are now asked to create a subfolder under Financial named Payroll. Megan, the payroll officer, is the only employee in the Accounting department allowed to access this folder. What is the best way to configure the new share? a. Assign Megan read/write permissions to the Payroll folder, and explain to your boss that it is not a best practice to give only one employee access to an important folder. b. Assign Megan read/write permissions to the Payroll folder. c. Create a new user group named Payroll, put Megan in the group, and assign the group read/write permissions to the Payroll folder. d. Ask your boss to allow you to put the folder outside of the Financial folder so you can assign a new user group read/write permissions to this folder that will not conflict with the Accounting user group.When a user, Belinda Lim, signs in to Windows, she cannot see her Documents folder in File Explorer and some of her Windows user settings are lost. You suspect her user profile is corrupted. Which tool or method should you use first to investigate and/or solve the problem? Second? a. Check the C:\User\Belinda Lim\Documents folder. b. Check the C:\Users\Belinda Lim\Documents folder. c. Use the chkdsk command. d. Use the sfc command.
- Use the mkdir command to add a directory named test2 in your home directory. Use one command to verify that the copy of /etc/passwd was successfully made to ~/test2/passwd.bak while also indicating that it is not empty. The output of this command must consist of only two short lines. Use the cat command to review the contents of the ~/test2/passwd.bak What is the code line for this in UBUNTU?Can you help me modify the command PowerShell below? 1. You are asked to check that the computers with addresses greater than 128 respond to pings. ----Modify the command to only check computers with addresses higher than 192.168.0.128. Get-Content "IPAddressList.txt" | ForEach-Object -process { ping $_ -n 1 }.1. can you show me the screen shot of the out put please .JUst the screen shot INCLUDE Irvine32.inc .386 .model flat, stdcall option casemap:none include Irvine32.inc .data prompt1 db "Enter the first integer: ", 0 prompt2 db "Enter the second integer: ", 0 sum_msg db "The sum is: ", 0 .data? num1 dd ? num2 dd ? sum dd ? .code main proc ; Clear the screen call clrscr ; Locate the cursor near the middle of the screen mov eax, 12 mov ebx, 40 call Gotoxy ; Prompt the user for the first integer mov edx, offset prompt1 call WriteString call ReadInt mov [num1], eax ; Move the cursor to the next line mov eax, 13 mov ebx, 40 call Gotoxy ; Prompt the user for the second integer mov edx, offset prompt2 call WriteString call ReadInt mov [num2], eax ; Add the integers mov eax, [num1] add eax, [num2] mov [sum], eax ; Move the cursor to the next…
- BELOW MCQ GIVEN ANSWER CAN BE MORE THAN ONE OPTION. PLEASE PROVIDE CORRECT ANSWERS. ------------------- Which of the following statements correctly describe execution of the highlighted command? $qrep ^root /etc/passwd root:qqed262w7tvxq:0:0:0000~admin(0000), ,258, :/:/bin/tcsh $su A) the current directory will be changed to '/' B) the environment will be the same as though root (super user ) had logged onto the system. C) the user will be prompted for a password and then /bin/tcsh will be executed . D) the system will execute /bin/sh . the current directory will not be changed. E) the user will be prompted for a password and then /bin/sh will be executed.n Linux Create a simple backup script to create a backup of the directory “Script2”. This script should copy all files to a default directory called “backupdir” which is located in the home directory. Try to place some verbosity into the script by using the echo command. For example, $ echo "Starting copying files" To preserve the date of files, add -p to the cp command. If you also add a -u, switch to the copy command, then upon multiple runs of the script, only files of the same newer would replace the one in the backup directory (this is called an incremental backup).Write Linux bash Shell Script, which will ask and display all information required to Student admission in Engineering and Sciences University. WEEK 3- Use following variables to write your CV in Linux bash script. Variable Script Output $0 $n $# $* $@ $? $$ $!
- Please, give permission for these users by using NTFS advance permission in windows 10.Nothing is missing....I wan you to type step by step U1 to 8 so, I can follow yours. When you give permission to each user please type it steps so I can follow, make sure no steps to be missed....Thank you User1 should be able to change Attributes and Permissions on all files in all folders. User2 should be able to Read, Append to files from the C folder and in the O folder and all of their respective subfolders, but not delete subfolders. User3 should have the ability to create folders and files in both the S folder and E folders. User4 can delete files as well as create folders and files in the A folder. User5 can delete files as well as create folders and files in the K folder and its subfolders. User6 should have the ability to Read/Writ and create files and folders in the C folder and O folders as well as delete subfolders. He should also be able to change permissions in the T folder.…i.Write a command that copies all files in the current working directory that start with b and have a .txt extension to a directory called data that is a subdirectory of your home directory. ii.Write a command to move all of the files in /tmp/downloads whose names contain the string 2020 to the current working directory. iii.Write a command to display a directory listing of all files in the current working directory that consists of two characters, followed by a . (period), followed by another 3 characters.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 > pwd