Free Essay

Extra Lab

In:

Submitted By ymy0906
Words 446
Pages 2
Answer the following questions:

Q1: ls –l gives long listing of files and directories. First column of the output is a permission of files and folder. This column displays combination of 10 letters as w, r, x, and one of these letters -, d, l or b. Example

[pic]

What these letters refer to?

Q2: What is login.defs files? What do the following characters mean in that file?
#
$

Q3: What is grep command? What will be the output of the following commands

ls –l | grep ^d ls –l | grep ^- grep ‘^#’ login.defs grep –v ‘^#’ login.defs grep –v ‘^#’ login.defs | grep –v ‘^$’ grep –v ‘^#’ login.defs | grep –v ‘^$’ | nl

Q4: what kinds of action of following switches have on man command
-k
-f
-a
-C
-d
-p

B: what is the difference between w and W SWITCHES?

-w
-W

Q5: how we can know the umask value? What is default value of umask?

Q6: What are the following fields indicate in a passwd file? cwest:x:500:500:Chris West:/home/cwest:/bin/bash

Q7: What are the following fields indicate in a shadow file? mwong:!!:12581:0:99999:7::: Q8: What are the commands for creating a user and deleting a user?

Q9: How do you check addition and deletion of user?

Q10: What is chage command? Give example.

Q11: What are the commands for adding group and deleting group?

Q12: There is folder called test on root directory what will the effect of following commands on it.

chown fred: /test chown :manager /test chown –hR root /test

Q13: In chmod permission command digit from 0-7 to seven is used as combination of four digits. E.g. it will be 4567, 7456 and so on. What every digit refers to and for what?

Q14: there is folder called test on desktop of adios user what will be effect of following commands on the permissions of it.

chmod 3456 /home/adios/Desktop/test chmod 5555 /home/adios/Desktop/test chmod 1234 /home/adios/Desktop/test chmod 4506 /home/adios/Desktop/test

Q6-1: what will be permission for newly created files and folders if the umask value is?

For files
202
111
666
542

For folders
202
111
666
542

Q15: What is command to add user to group?

Q16: What is command to modify groupid and group name?

Q17: What is the command to see all users who logged in?

Q18: What is the command to see username is, gid, uid, groups?

Q19: How do you set groupid for a directory?

Q20: What does touch command do?

Q21: Explain the following output of ls –l command.

Q22: What does chmod g+s * mean?

Similar Documents

Premium Essay

Spearmint Gum Lab

...Purpose--The purpose of our lab is to answer the research question of how do different brands of sugar free spearmint gum go through change when it is heated? First, we must understand what gum is used for. One use is that it can be used to freshen up your breath. Also, a use for gum is to chew it when you have an upset stomach when Tums are not available. Another use is to use gum as an adhesive when nothing else is around. Gum’s melting point is about 125 degrees fahrenheit (mentalfloss.com). By knowing this we hypothesized that the gum would melt to a liquid. In our experiment we used spearmint sugar free gum of four different brands: Extra, Icebreaker, Trident, and Orbit. In order to answer this research question, we must first know the...

Words: 1426 - Pages: 6

Free Essay

Medical History

...provide insight into vexing problems. In 1920, pharmacologist Otto Loewi famously had a recurring dream that suggested how he could demonstrate neurotransmission in the lab. The key experimental details escaped him until he captured the dream in a bedside notebook. Later that day, he performed his Nobel-prizewinning experiments with the aid of a few frog hearts and a water bath. Now, a team led by Ying-Hui Fu reports that a single mutation in a gene called DEC2 can cause people to sleep for only about six hours per night instead of the usual eight (Y. He et al. Science 325, 866–870; 2009). This mutation seems to be exceedingly rare, with only two carriers found so far. Only by introducing this mutation into transgenic mice and fruitflies could the researchers show compelling evidence of the mutation’s effect. These two additional waking hours each day are quite remarkable when you consider that, over 80 years, this would add up to more than 8 years of extra productivity! Why are extreme short sleepers so rare? Surely evolutionary pressures should favour less sleep? In prehistoric times, short sleepers would have had more time to hunt, gather food and guard against predators. In modern society, we must constantly balance home, work and other demands. Sleep is often sacrificed, so a drug that could provide hours of extra productivity would be hugely popular. A better understanding of the reasons for sleep could provide a...

Words: 941 - Pages: 4

Premium Essay

Compensation Merit Pay

...1. Level I Incentives: Level I incentives are geared towards increasing employee productivity, but usually for a short amount of time. I have personally never been given these kinds of incentives in my internships, but it is similar to being given extra credit on coursework if you do the extra problems. If I were working in sales, an incentive to sell a certain amount (i.e. 5% of the sale) would have motivated me to work harder to achieve a greater sale. Level II Incentives: Level II incentives give employees motivation to find a better or smarter way of getting work done. At GE, engineers were encouraged to find a problem in the process of gas turbine manufacturing by awarding the best innovative idea/improvement with a cash award. The most beneficial aspect of this option for the company was the submission of several good improvements, but only the loss of one cash prize. Level III Incentives: Level III incentives last the longest, because it pertains to an overall improvement in work culture. Whether it’s the encouragement of employee recognition, friendly competition, openness of management, any of these cultural aspects could foster greater productivity. At GE, it was generally understood that if you shared responsibilities/shadowed your manager consistently for a year or two, you would be entitled to the next level managerial position. Knowing there is always room to move up, as long as you achieve the best results, keeps employees working harder or better for a longer...

Words: 477 - Pages: 2

Premium Essay

Event Planning

...Premier Events, The Event Planning Specialists, brings to the community of Warner Robins a new breath of air in the event planning market. By combining old fashioned values, going the extra mile, and using cutting edge event-planning software, Premier Events will lead the market, providing the same quality results, every time. Premier Events is an equal opportunity business making its expertise and its products available to help its customers plan their own events. Party Packs (complete kits for their event), make hosting a party a snap, right down to the refreshments. The event planning software brings interactive event planning as close as their personal computer. Through these and other affordable products and services, Premier Events aims to be the number one resource for any event. In an ever changing, fast-paced world, success is determined by good choices for lasting effects. Communication is essential. Premier Events strives to be the best choice of clients by helping to ease their event planning burden. Through consistent, predictable professionalism, Premier Events will ensure a worry and hassle-free event at a reasonable price. But, not all our clients will be external. Premier Events has internal clients to serve. Premier Events will strive to provide the same predictable and professional working environment to its employees and contracted vendors, justly compensating them for their services. It is also a priority to make a comfortable living wage for its owners...

Words: 282 - Pages: 2

Premium Essay

Wisdom Action

...fact is the director received 3 times more than was expected. An the other known fact was out of the three agencies only two required that these donation be used for the manner in which it was requested for. 2. In this ethical dilemma the potential stakeholders would be the agencies, and the director and the organization new part-time employee. 3. For advice, and consultation, and input I think the best thing to do would be to thank all three agency for assisting in their contribution. I would also explain each avenue on why it was very important for this donation which was to help get the extra needed help to help their communities in which we assist. 4. In this dilemma I think that it is best to do what the money was given for and that is to support the new salary of the new part-time employee. 5. In this dilemma the outcome for good is that the community will get the needed extra help to the support their needs. Now the bad could be that the money would be used for other things besides what it was needed for. The forces in which needs to be considered is that it is this organization civil obligation to be honesty and truthful on what the purpose of this money is for and apply to the part-time position in which they request the money and following the values and a moral code to in which this organization will stand by. My civil obligation is to do right by the money which was given to our establishment and not defraud these agencies in which contributed these...

Words: 332 - Pages: 2

Premium Essay

Skullcap Research Paper

... A relative of the mint family, skullcap, is a small plant that ranges in size from one to four feet tall. Given the botanical name Lateriflora, meaning flowers only grow on one side of the stem, skullcap flowers bud with varying colors of white-blue to purple-pink depending on the season. The plant earned it’s common name of skullcap due to its petals having a striking resemblance to that of a medieval helmet. I first heard of skullcap at a health seminar from a naturopath, who claimed the sedative properties would help calm, if not stop the body convulsions I was struggling with at the time. Unfortunately, she never recommended which species to try and I didn’t possess the personal knowledge at that time to make the correct decision on my own. However, having the opportunity to research the history, science and uses of skullcap for this paper, I now have a greater understanding of its significance and healing abilities. For centuries, skullcap has been considered sacred in numerous cultures. The females of Native American tribes used this plant not only for maintaining a healthy reproductive system, but also for important ceremonial purposes such as when she makes the transition from a young girl into womanhood. It is my understanding that if certain menstrual taboos were broken in a tribe, a purification ceremony would be held. skullcap would be dried, lit on fire, and waved around the 'rule breaker', similar to what I have learned about cleansing. The smoke from the burning...

Words: 1192 - Pages: 5

Premium Essay

Mind Expanding Experience

...function were again extremely kind, helpful, and conversant, and it made the trip ever so much more easily and save time. Besides that, I also joined the Society of automotive engineers (SAE) to visit the proton industry last month. It was gratifying experience to explore at proton industry and learn about the proton engines and its other developments. Cam-Pro engine as we know as the most save energy engine in Malaysia, it was development by combining Lotus technology with proton own technology after the proton purchase the Lotus Company. In the trips, we visit emission lab, engine lab,(Component Material Safety and Strength) CMSS lab and noise lab. In addition, I also found out proton industry also related to my own course, telecommunication when came to visit the noise lab. It was about the sound interference inside the car and its influence to engine. It was a amazing visit for me to gain the extra...

Words: 326 - Pages: 2

Free Essay

Ind Abc

...Saints Row IV Hub Cheat Codes - Effects List You can enter cheats by accessing the HUB menu, then the Extras menu, and finally the Cheats menu. Entering codes disables auto-saves and also will not allow you to earn any in-game Trophies or Achievements unless you load a save without the cheats enabled. You can enter any cheats below to access the corresponding effects. * unlockitall - Access is granted to all unlockables * cheese - Puts $100k in your pockets (can be spammed multiple times in a row) * letsrock - Gives you a full load-out of randomized weapons * goodygoody - Removes the Notoriety from you at any time * runfast - Your super-sprint doesn't exhaust your Stamina * fryhole - All of the dead bodies lying around start to raise up into the air * vroom - Indestructible cars * isquishyou - All cars can now drive over other cars like tanks (can only be turned off by reloading a clean save) * hohoho - This makes all of the pedestrians either pimps or prostitutes * mascot - All pedestrians turn into mascots * evilcars - Makes all of the cars on the road target you and start attacking you * ascii - Enables ASCII mode * bigheadmode - Characters have big heads * noglitchcity - Glitch effects are disabled * nosupermove - Super movement is disabled * nosuperpowers - Super powers are disabled * nowardens - No wardens will spawn * fastforward - Fast-forward is activated * imhuge - The player becomes a...

Words: 313 - Pages: 2

Free Essay

Ttf Advertising

...TTF Chennai : 4, 5, 6 January TTF Bangalore : 11, 12, 13 January TTF&OTM Mumbai : 8, 9, 10 February TTF&OTM New Delhi : 14, 15, 16 February TTF Kolkata TTF Hyderabad TTF Ahmedabad TTF Surat TTF Mumbai TTF Pune : 5, 6, 7 July : 12, 13, 14 July : 16, 17, 18 August : 23, 24, 25 August : 30, 31 August 1 September : 6, 7, 8 September 2013 Fast Action Order Form Please make a photocopy and fill up; Fax / Mail to : Fairfest Media Ltd. 25 C/1 Belvedere Road, Alipur, Kolkata 700027 Fax : (91) (33) 2479 0019 Tel : (91) (33) 2479 0010 - 13 (4 Lines), 4028 4028 E-mail : ttfotm@fairfest.com, or D-1, Plot No. 76, RSC 6, MHADA, S.V.P. Nagar, Andheri (W), Mumbai 400 053 Fax : (91) (22) 2637 2760 Tel : (91) (22) 2637 2883, 2637 2895 A c t i o n R e q u i re d Please book walk-in stand package as follows : National International/NTOs Your Details for Invoice (PLEASE USE BLOCK LETTERS) Name :_____________________________________________________ Designation :________________________________________________ Organisation :_______________________________________________ Address :___________________________________________________ _____________________________________________________________ ____________________________________________________________ ___________________________________________________________ Tel : _______________________________________________________ Fax : _______________________________________________________ E-mail : Web : ___________________________________________________ ...

Words: 1644 - Pages: 7

Free Essay

Burma

...the air and can move unexpectedly to the right or the left or it can drop suddenly. Topspin Serve A topspin serve does exactly that – spins rapidly forward from the top. The server tosses the ball a little higher, strikes the ball towards the top of the back in a down and outward motion and follows through with his or her swing. This serve has a much more predictable movement, but can be difficult to handle because of its quick speed. Jump Serve A jump serve utilizes an even higher toss that should be several feet in front of the server. The server uses more of an attack approach, jumps and strikes the ball in the air. The extra motion allows the server to put even more power on the ball and this can make for a very difficult serve to handle. The drawback is that all that extra motion can lead to a higher incidence of serving errors. Most jump serves have topspin on them, but it is possible to jump serve a floater. Overhand Serve A serve in which the player tosses the ball with one hand and strikes in the air above her head. Underhand Serve A serve in which the ball is given a slight under-hand toss from about waist high and then struck with the opposite closed fist in an "underhand pitching" motion. Power Serve When a serve is hit low and fast to a rear corner of the court. This is also called a drive...

Words: 323 - Pages: 2

Premium Essay

Mgt 300 Assignment #1

...MGT 300 Chapter 1 and 2 Assignment #1 1. There are many advantages of empowering employees. One advantage companies find in empowering employees is increased performance. Companies that offer pay increase to employees to promote empowerment, for example learning a new skill or taking college classes in areas that will help them, were very successful and experience performance gains. This leads into another advantage of empowering employees because it empowers them with knowledge and responsibility. With the knowledge and responsibility they can use those skills to be able to have self-managed teams. This allows them to supervise their own activities more so than they could have before. The employees have a better understanding of their work and with that they are able to have more responsibility, allowing them to be able to work in self-managed teams. This is an advantage because this allows a company to better utilize its workforce. Employee empowerment does have a few disadvantages as well. One being that it could create a problem with the coordination and organization throughout a corporation, because the decisions aren’t being made by the top managers, who are responsible for the performance of the company and also for establishing organizational goals. This can end up decreasing efficiency which is a big disadvantage to a company. 2. The Hawthorn Studies, was a study designed to test different levels of lighting in the workplace and see how that affected...

Words: 467 - Pages: 2

Free Essay

Trend #2

...A study released this month reveals that younger diners are enjoying the new concept of ordering their meals with tablets when they go out to eat. Of the 6,000 consumers who were surveyed, nearly 40% were very favorable towards this new piece of the dining experience. Many casual-dining restaurants are excited about this new trend and establishments like Applebee’s, Buffalo Wild Wings, Chili’s, and Olive Garden are beginning to test this technology as well. The younger population seemed to be much more comfortable with this change and some businesses hope to adopt this practice because it supposedly streamlines the ordering process and delivers faster service. As time goes on, peoples’ lives are prone to becoming fast-paced and hectic and this may be a way to make dining out a little bit easier. However, as the age of the diners increased, the study found that the percentage of people who favored the use of tablets to order food had decreased. Older diners would rather interact face to face with a person. Now businesses are presented with the challenge of deciding on which part of these opposing extremes they wish to please, or how to please both. Of course, there is a lot of controversy with tabletop ordering. It makes a person's job a computer's job, and that cuts costs. Each console goes for $100 per month, which, in the end, comes out much cheaper than what it costs to employ a waiter. Also, no manager needs to train it, replace it if it quits, or offer it sick days. The...

Words: 365 - Pages: 2

Free Essay

Case Analysis

...|For Office Use: Grade | | Written Analysis and Communication Individual Assignment No 2 Case Analysis Report On ‘Pramanik Containers And The Bottleneck Challenge (A)’ EXECUTIVE SUMMARY: Pramanik Containers Private Limited (Pramanik) is an aerosol manufacturer which faces a problem of mismanagement of printing plates and maintenance of record which in turn increase overtime bill and emerged urgent orders. This mismanagement also has reduce the productivity of machines. Due to all this Bansilal, owner of Pramanik, was in dilemma about entering in new business. To resolve this problem of mismanagement it is better suited to use laptop of Piyush, son of Bansilal, to maintain record because it is highly efficient machine and able to track record in optimal time thus reduce tracking time and expenses. Word Count: 98 SITUATIONAL ANALYSIS: Pramanik Containers Private Limited (Pramanik), a family run and buyer to buyer business, was established by Bansilal Mehta. Pramanik emerged through Bansilal’s networking personality to gain an order of aerosol cans from ABC Pharma and became heart of ABC’s supply chain. His opportunist capabilities has helped to expand business by providing aerosols to other industries like...

Words: 1325 - Pages: 6

Free Essay

Hello You

...all social media excluding phone calls and texting. Once the fast got going, I don’t think I realized how long fast would be though. But I made it through the 24hours and I learned a couple of things along the way.                   Although I wish I could say I made it through 24hours without any struggles, I would be lying if I said that. But that should be expected from most people as no one can simply make it through something like this without a little bit of struggles.                  My mood worsened and I became more lethargic. My thoughts were shaming and I began to question taking a career path that requires I stay active on social media. I shamed myself for not pursuing a career of substance and contribution. I wasn’t using the extra time for constructive activities; I was feeling sorry for myself. I missed communicating with the people I follow. I missed sharing my disconnected thoughts on Twitter. At my lowest point, I just wanted to sign on to Facebook to read status updates from people who think the Onion is a real news outlet. I missed the feeling of tumbling down the internet’s rabbit hole at 3am, just like any good addict misses their drug of choice. The question I was left to answer was this: If I don’t share my life on social media, does Wit & Delight exist?...

Words: 275 - Pages: 2

Premium Essay

Suggestion to Airasia

...are standing in front of the gate will be bother by some of them who are having a luggage with them. This problem should be set up in a proper way. Other than that, the flights are not on time. Punctuality is very important in an airport. Sometimes, the flights are delayed or cancelled without any announcement. It may influence the plan of the customers and waste time. Air Asia Berhad should set up the schedule efficiency and make announcement to all the customers when the flight would be delayed or cancelled. It can help to reduce troublesome of all the customers. The payment for the flight should be shown clearly to the customers. Customers realize that they have to pay for other extra fees without announcement. They have to pay higher fees to upgrade the weight of the luggage. The extra fees should be stated clearly for all the customers. It can...

Words: 779 - Pages: 4