A+ Guide To It Technical Support
10th Edition
ISBN: 9780357108291
Author: ANDREWS, Jean.
Publisher: Cengage,
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 18, Problem 12TC
Explanation of Solution
Given:
FTP server is established in an ubuntu server.
Jason gets an error message, when he was trying to put a file in the /home/Jason/files directory.
Jason does not have an ownership of the directory.
To find:The command which can give an ownership of the directory to Jason...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In Unix shell, when command mv foo ./foo2/foo3 is executed, what happens to file foo? Assume foo is an existing file,
and ./foo2 is an existing directory.
A. foo is moved into ./foo2 with new name foo3
B. foo is moved into ./foo2/foo3 with same name foo
Select one:
O B happens
O ither A and B happens, but not enough information to determine which happens
O None of A and B could happen
O A happens
Write a program that prompts the user for a path and displays the directory structureon the command tool as follows:
In a short bash script named listdirs.sh that lists the names of the directories (the names only not the files contained in the directory) that are within the the directory provided as the single argument. The directory names are printed one per line. It prints the directories only, not symbolic links to directories. Please do this with a for-loop that for each entry to the directory provided as argument checks if it is a directory and if it is prints its name. If you run your script on red you should get
red 302 % ./listdirs.sh /
boot
dev
eecs
etc
home
jas
local
media
mnt
obj
opt
pkgcache
proc
root
run
srv
sys
tmp
usr
var
xconf
xsys
red 303 %
To submit your script enclose it in a tar file using the command
tar cf listdirs.tar listdirs.sh
Knowledge Booster
Similar questions
- command for running this Python Spark source code filearrow_forwardAttached is the python file server.py. There are errors in these codes, so make sure to show screenshots of the fixed code of the python file along with the screenshot of the output as well.arrow_forwardYou work for a small company that keeps the following information about its clients:• first name• last name• a 5-digit user code assigned by your company.The information is stored in a file clients.txt with the information for each client on one line(last name first), with commas between the parts. For exampleJones, Sally,00345Lin ,Nenya,00548Fule,A,00000Smythe , Mary Ann , 00012Your job is to create a program assign usernames for a login system.First: write a function named get_parts(string) that will that will receive as its arguments astring with the client data for one client, for example “Lin ,Nenya,00548”, and return theseparate first name, last name, and client code. You should remove any extra whitespace from thebeginning and newlines from the end of the parts.You’ll need to use some of the string methods that we covered in this lessonYou can test your function by with a main() that is just the function call with the argument typed in.Second: write a function make_user(param)…arrow_forward
- find The find command takes a pattern as a command-line argument and recur- sively searches through directories to find a filename matching that pattern. It should print a relative path starting with "./" for every file/directory that matches. For example, running ./find 1s.c from within the hw2 directory should print ./1s.c. If run from the parent directory, the output would be . /hw2/1s.c. There may be multiple matches. If we run ./find .c from within the hw2 directory, we should see: ./find.c ./1s.c ./tree.c The output does not need to be sorted. If nothing matches, it shouldn't print anything. Pattern matching should be case sensitive.arrow_forwardIn Linux, Find every file that ends with “.py” or “.txt” or “.cpp” from your root directory.arrow_forwardYou need to send a backup copy of the /etc directory across the network. To create the file, use the tar command with the -cf switches to create a new archive file. Use -z as the preceding option to compress the file. In this lab, your task is to: Create a compressed archive of the /sales directory and all its contents Name the file /salesbkp.tar.gz and save it in the root directory (/).arrow_forward
- How do you create 10 student users in Linux by adding a file to each of their home directories called ClassNotes. You will add each student to the tech group. The students Needs to be split into two groups and create these groups called Project A and Project B. In the home directory you will need to make two directories named SharedFolder A and B. You will need to change each group to their appropriate directory. Then you will need to set permissions for each shared directory so only the users and groups have access to their shared directory. You will then set the group ID for each shared folder so that all subdirectories and files inherit the shared folder permissions.arrow_forwardOn the cmsy255 server, write a bash shell script called usrinfo that displays information about a specified user. Make sure the script file is executable. Also make sure that you can run the script without having to specify the directory. For example, you should NOT have to enter ./usrinfo in order for it to run. The script should: ● ● ● Accept 1 argument from the command line (this is the User ID that you want to display info for) finger the User ID display any lines from the who command that match this User ID display any lines from the ps -ef command that match this User ID In addition, if the number of arguments is not exactly 1, display an appropriate error message and exit with an exit code of 1.arrow_forwardCreate an application that uses a socket connection to allow a client to specify a file name of a text file and have the server send the contents of the file or indicate the file does not exist. The server must contain a text based password file ("user name" & "password"). The client must pass a valid username and password to establish a connection with the Server (see Note 1). Notes: 1. A much better approach would be to encrypt the password file. The Java Cryptographic Extension (available since JDK 1.4) provides an API. Java Cryptography Architecture Reference Guide (JCA Guide): on oracle Introduction, Code Examples - Computing a Message Digest Object (i.e. one-way hash; using SHA-1) -Please ensure that it works need clear help compiling properly with no errors.arrow_forward
- Write the command that will create a tar archive of all the files in the directory named"/fir/sec/thi", that exists on the local machine. The name of the tar archive is "/tmp/animal".The command should be executed from the directory /home/user1. Write the command that will extract the tar archive that was created in Question #63. The contentsof the archive should be placed in the directory "/two/four/six". The command should be executedwhile the current directory is /tmp.arrow_forwardWrite the command that will create a compressed tar archive of all the files in the directory named"/farmer/brown/red/barn". The directory resides on the local machine. The name of the tar archiveis "/animals/squeezed". The command should be executed from the directory "/houston/texas".arrow_forwardlinuxarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A+ Guide To It Technical SupportComputer ScienceISBN:9780357108291Author:ANDREWS, Jean.Publisher:Cengage,LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE L
A+ Guide To It Technical Support
Computer Science
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:Cengage,
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L