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
What does . in a pathname represent? In which type of pathname does it normally specified?
Represents current directory and is normally specified relative pathname
Represents root and is normally specified in the absolute pathname
Represents current directory and is normally specified in the absolute pathname
Shell will give an error since . is not a valid directory name
If mkdir test command fails, what could be the possible reason(s)?
Group of answer choices
test directory or file already exists in the current directory
Shell is broken, that is, it is not functioning properly
Your working directory may be a system directory
Could be (a) or (c)
If rmdir test command fails, what could be possible reason(s)?
Group of answer choices
test directory does not exist
test directory is not empty or your working directory is in it
Could be (a) or (b)
test file does not exist
What is a hidden file in UNIX?
Group of answer choices
Any file whose filename starts…
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
What is wrong with the following Linux chmod command, given that file.txt exists in the current directory and the user is user1?
> ls -l file.txt-rw-r--r--1 user1 group1 325 Dec 8 11:49 file.txt> chmod 684 file.txt
Knowledge Booster
Similar questions
- In linux Add the /tmp directory to your PATH. Ensure that the PATH is available to all child shell sessions. This change does NOT need to persist across boots. What command(s) did you use for this?arrow_forwardShell programming in Linux and Unix: Experiment with changing your PS1 and PS2 prompt so it is set to what you want once you log in. You can also add to your PATH variable and set a CDPATH. A. What file should you modify in your home directory to do this task? B. What command(s) will change the prompts and what command(s) will have that change take effect once you log in?arrow_forwardFor this lab, you will write a shell script called nethelper.sh that: 1. Reads in a list of hosts from a host file that is passed in as a parameter 2. Repeatedly, until the user selects quit (q), ask the user if the user wants to ping a host or look up a hosts DNS name 3. Once the user has selected an action, prompts the user for which host and then applies the action. Note that for the ssh action, the script must also ask the user for the user name that will be used to log into the host. Step 1 To accomplish step 1 above (reading in a list of hosts from a file), you will write a function called read_hosts. Functions in bash scripts have the following syntax: function name { # function body goes here } You can put any bash syntax inside the function as the function body. Also, note that the parameters to a function act like the parameters passed in at the command line. In other words, the parameters to the function are place in variable named $1, $2, and so on. So, how do you read the…arrow_forward
- You 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_forwardCan you run two client programs on a same host? Try it out, and explain how the server differentiate the two different processes (both running the same client code)? from socket import * serverName = 'localhost' serverPort = 12000 clientSocket = socket(AF_INET, SOCK_STREAM) clientSocket.connect((serverName,serverPort)) sentence = input('Input lowercase sentence:') byteToSend = str.encode (sentence) clientSocket.send(byteToSend) modifiedSentence = clientSocket.recv(1024) print('From Server:', modifiedSentence) clientSocket.close() from socket import * serverPort = 12000 serverSocket = socket(AF_INET,SOCK_STREAM) serverSocket.bind(('',serverPort)) serverSocket.listen(1) print ('The server is ready to receive') while 1: connectionSocket, addr = serverSocket.accept() sentence = connectionSocket.recv(1024) capitalizedSentence = sentence.upper() connectionSocket.send(capitalizedSentence) connectionSocket.close() from socket import * serverName =…arrow_forwardWhen you type the pwd command, you notice that your current location on the Linuxfilesystem is the /usr/local directory. Answer the following questions, assuming that yourcurrent directory is /usr/local for each question.a. Which command could you use to change to the /usr directory using an absolutepathname?b. Which command could you use to change to the /usr directory using a relativepathname?c. Which command could you use to change to the /usr/local/share/info directory usingan absolute pathname?d. Which command could you use to change to the /usr/local/share/info directory usinga relative pathname?e. Which command could you use to change to the /etc directory using an absolutepathname?f. Which command could you use to change to the /etc directory using a relativepathname?arrow_forward
- What is the command one would run at a shell to change the current working directory to the parent directory? Assign this command as a string to a variable called answer. E.g., if you thought the answer was "do xyz 123" you should write: answer = "do xyz 123"arrow_forwardProvide an example of two daemon processes found on Linux systems. What type of service does the /etc/fstab file provide? When is the /etc/fstab implemented? Write the command line to access the online information for the cp command and list the type of information found about the command.arrow_forward
arrow_back_ios
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