Question

In: Computer Science

a) Observe the following Linux commands and work out what each command does: 1) $ ls...

a) Observe the following Linux commands and work out what each command does:

1) $ ls –al

2) $ /etc/profile

3) $ chmod 200 final_assignment.txt

b) Consider a scenario where Bob has downloaded his messages to the local machine with an access of

POP3, he can create mail folders and move the downloaded messages into the folders. Bob can then

delete messages, move messages across folders, and search for messages (by sender name or subject).

But this paradigm—namely, folders and messages in the local machine—poses a problem for the nomadic

user, who would prefer to maintain a folder hierarchy on a remote server that can be accessed from any

computer. This is not possible with POP3—the POP3 protocol does not provide any means for a user to

create remote folders and assign messages to folders. Which protocol can be used in this given scenario

so that messages can be accessed from anywhere from the same inbox account? Justify your answer with

the aid of a diagram.

Solutions

Expert Solution

Solution:

a)

1. Command : ls -al

ls command is used to display the contents of the current working directory. when it is used with extra options the behaviour will be different.

-a : This option is used to display all the files in the directory including the hidden files. Hidden files are the ones which has names atarting with a period.

-l : This option is used to display the long list of the files. Using this command we can see the permissions, file owner , size , modification time and file name.

So, ls -al command is used to display a long listing of all the files ( including the files that starts with . ) .

2. Command : /etc/profile

The file /etc/profile  contains the information about system wide environment variables and startup programs. This file is used by the shell programs like BASH ( Bourne Again Shell ) , KSH ( Korn Shell) and SH. It is generally used to setup environment variables like PATH , user limits ( we can limit the system resources used by user ) and settings for the user.

3. Command : chmod 200  final_assignment.txt

chmod command is used to change/modify the permisions of a file based on the given argument.

So, in the above command the argument is 200

when digits of  200 is represented in binary.

So the above table we can see that command sets the file permissions to -w- --- -- i.e only write permission for user.The table shows how the argument 200 is interpreted as permissions.

I hope this would help....................:-))


Related Solutions

Questions: Explain the following Linux commands Show your work examples/outcome. 1. command used to locate /Home/...
Questions: Explain the following Linux commands Show your work examples/outcome. 1. command used to locate /Home/ Directory…show the outcome 2. command used for October 2020 3. mv command and cat command 4. commands used- move to parent directory? 5. Explain why command is used ls -R?   What is the meaning of -R ? 6. Explain and describe two examples of how the touch command. 7. Explain what is the outcome of the commands ls -C ? 8. Explain command echo....
linux Using the grep or egrep commands, what would be the full command (including regular expression)...
linux Using the grep or egrep commands, what would be the full command (including regular expression) to view only the lines in the file /boot/grub/grub.cfg that DO NOT begin with a hashtag (the # sign). In other words, what would be the command to print all the lines in this file that do not begin with this character.
Systems Programming in Linux using C Remake the version of the ls -ialR command in C.....
Systems Programming in Linux using C Remake the version of the ls -ialR command in C.. In this version of ls, you must also consider symbolic file types. Make sure you have file header comments and function header comments. Also, write inline comments whenever necessary.
Operating Systems class Complete the following work with Linux commands and submit the screenshot. 1.Install a...
Operating Systems class Complete the following work with Linux commands and submit the screenshot. 1.Install a virtual machine with Lubuntu 2.Log in and display the content of your home directory 3.Create a directory called homework under your home directory and navigate to homework directory 4.Create a file called newfile under homework directory (this can be done by Leafpad) 5.Copy the file newfile to tempfile, then rename tempfile to myfile and delete newfile 6.Display the content of myfile
Linux operation 1. Explain what this command does: rpm –qai | more ..... ? 2. Ps...
Linux operation 1. Explain what this command does: rpm –qai | more ..... ? 2. Ps – Af |grep -v ^root, Explain how this command to find application processes could helpful in the real world to the system administrator?? 3. Clearly describe 3 valid command options, and their meaning, of this command used to add users? 4. List 2 different variants of the Unix (not Linux) operating system, as well as their corresponding vendor (the company that developed them) ?...
QUESTION 1 Match the following LINUX/UNIX commands with what they do. du    whereis users who...
QUESTION 1 Match the following LINUX/UNIX commands with what they do. du    whereis users who am i A. display a compact list of users currently logged in B. locate the binary, source, and manual page files for a command C. summarize disk usage D. who am i currently logged in as on the Linux server. QUESTION 2 What rm command option (flag) would you use to remove a file that begins with a - (hyphen)? -f -p --   ...
Unix/Linux Turn in the following commands and any output from the commands. 1) ll to show the original 3 files
Unix/LinuxTurn in the following commands and any output from the commands.1) ll to show the original 3 files2) run the tar command to stuff three files3) ll to show the 'tar archive'4) mkdir newdir to create a new directory to unstuff the 'tar archive'
Linux Commands 8.How would you find out information about systemdon your Linux workstation? 9.A user would...
Linux Commands 8.How would you find out information about systemdon your Linux workstation? 9.A user would like to put the firefoxprogram in the background –what would you type into the command prompt to do this? 10.For the program in above, how would you bring it back into the foreground? 11.What is the fork()function call? 12.In Linux what command sequence do we enter to stop a program? 13.What is the UIDcolumn in the output of the command ps -ef? 14.What is...
Choose 10 commands from the list to study in detail for this assignment. For each command,...
Choose 10 commands from the list to study in detail for this assignment. For each command, you need to provide a short description of the main functionality, and an example run (including output) of the command. Notes  You need to choose at least one command from each category.  Be brief. You do not need to write a lot.  Although you are only required to document the usages of 10 commands in this assignment, you are expected to...
what is the difference between ls and ps commands please explain properly with writing and executing...
what is the difference between ls and ps commands please explain properly with writing and executing commands and state the differences. The name of subject is linux/unix
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT