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
UNix and bash
please write line by line with result and screenshot
Create a directory called dir1. Create 10 files in dir1 in whatever way you would like, and fill them with at least a few lines of text. Record how you did this here.Then, write a bsub command line that will submit a job for each file in dir1 to the express
squeue that simply “cats” the file. The output file (stdout) for each job should be the <filename>.out. That is, the first job should execute the command:
cat file1
and the output should be in file: file1.out
You 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)…
Knowledge Booster
Similar questions
- write a linux shell script to sort a table by column from a text file. The user will be able to choose which colmun does he want to sort. the text file : ID Namn Vikt L B H052 Hyllplan 1200 100 30 2077 Bokhylla 5000 120 30 80096 Skåp 15000 80 40 85146 Vit Garderob 9000 80 60 200149 Bänkskiva 3650 180 100 5163 Skrivbord 25800 120 60 70182 Pelarbord 1600 60 60 70arrow_forwardfind 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 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.sharrow_forward
- The Linux operating system is a very popular server OS. A network administrator has to protect the login/password files stored on the servers. In Linux there are two important files: /etc/passwd And it contains rows that look like this: root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin user1:x:15:51:User One:/home/user1:nologin user2:x:15:51:User One:/home/user1:nologin user3:x:15:51:User One:/home/user1:nologin This file contains login information. It's a list of the server's accounts that has userID, groupID, home directory, shell and more info. And the second file /etc/shadow, contains rows that look like this: root:$1$TDQFedzX$.kv51AjM.FInu0lrH1dY30:15045:0:99999:7::: bin:*:14195:0:99999:7::: daemon:*:14195:0:99999:7::: adm:*:14195:0:99999:7::: ftp:*:14195:0:99999:7::: user1:$1$ssTPXdzX$.kv51AjM.FInu0lrH1dY30:15045:0:99999:7:::…arrow_forwardIn Linux, Find every file that ends with “.py” or “.txt” or “.cpp” from your root directory.arrow_forwardWrite Linux command for each question. Please use one single command to do following process. PLEASE GIVE EXPLANATION TOO. Q4: Move <myfile.txt> to the directory “ET506” with name <file.txt> Q5: Delete <file.txt> Q6: Delete directory <ET506HW> Q7: Rename <root_file.txt> to <root_new_file.txt> Q8: Create five files name “file1.txt”, “file2.txt”, “file3.c”, “file4.cpp”, “file5.html”. Q9: List all files end with “.txt” Q10: List all files contain “file” Q11: Move every file with name contain “file” to directory “ET506”arrow_forward
- please helpe me Take a picture of the input and output Create a file in Kali Linux root directory with the name MyTest.txt.a. Generate a hash value for the above file.b. Make some changes to the text of the file and generate again the hash valueWrite about the change that you noticed. Display all the outputs one by onearrow_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_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
- LINUX QUESTIONS: Write Linux command for each question. Please use one single command to do following process. Q1: Make a directory name “ET506" and "ET506HW"in your home directory. Q2: Make a filename call “myfile.txt” and "root_file.txt". Q3: Copy <myfile.txt> with name <myfile_1.txt> Q4: Move <myfile.txt> to the directory “ET506” with name <file.txt> Q5: Delete <file.txt> Q6: Delete directory <ET506HW> Q7: Rename <root_file.txt> to <root_new_file.txt> Q8: Create five files name “file1.txt”, “file2.txt”, “file3.c”, “file4.cpp”, “file5.html”. Q9: List all files end with “.txt” Q10: List all files contain “file” Q11: Move every file with name contain “file” to directory “ET506”arrow_forwardLinux Homework Please show console output 1: Please create a script that prints “Hello, your name.” 2: Please create a directory call it yourname_bin, and add it to PATH. Then move the script “Hello, your name” to yourname_bin. Then run it from your root directory. 3: Add a new command called ‘a’ which will perform exact same as ‘ls -a’. 4: Create a function call it yournamesortFile, which will sort all filenames of current directory. 5: Please make your own page using shell script, print following as your page. <html> <head> <title> YourName System Information </title> </head> <body> <h1>YourNameSystem Information</h1> </body> </html> 6: Add one variable in the example, name the variable as greeting, which displays “Hello, my name is your name” in the body using variable greeting. 7: Add one…arrow_forwardWrite 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_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