SlideShare a Scribd company logo
1 of 1
Download to read offline
*******The dirname utility treats its argument as a pathname and writes to standard output the
path prefixthat is, everything up to but not including the last component:
$ dirname a/b/c/d a/b/c
If you give dirname a simple filename (no / characters) as an argument, dirname writes
a . to standard output: $ dirname simple . Implement dirname as a bash function. Make sure it
behaves sensibly when given such arguments as /.
On linux please explain step by step because im so confused

More Related Content

More from sgambikaproducts

The following information applies to the questions displayed below] .pdf
The following information applies to the questions displayed below] .pdfThe following information applies to the questions displayed below] .pdf
The following information applies to the questions displayed below] .pdfsgambikaproducts
 
The following income statement was drawn from the records of Munoz, .pdf
The following income statement was drawn from the records of Munoz, .pdfThe following income statement was drawn from the records of Munoz, .pdf
The following income statement was drawn from the records of Munoz, .pdfsgambikaproducts
 
The following excerpts have been taking from a patient � Maisie Wils.pdf
The following excerpts have been taking from a patient � Maisie Wils.pdfThe following excerpts have been taking from a patient � Maisie Wils.pdf
The following excerpts have been taking from a patient � Maisie Wils.pdfsgambikaproducts
 
The following events occurred in the recent past in Canada� The w.pdf
The following events occurred in the recent past in Canada� The w.pdfThe following events occurred in the recent past in Canada� The w.pdf
The following events occurred in the recent past in Canada� The w.pdfsgambikaproducts
 
The following diagram shows the chromosomes with their associated ge.pdf
The following diagram shows the chromosomes with their associated ge.pdfThe following diagram shows the chromosomes with their associated ge.pdf
The following diagram shows the chromosomes with their associated ge.pdfsgambikaproducts
 
The firm is currently an all-equity firm with assets worth $250 mill.pdf
The firm is currently an all-equity firm with assets worth $250 mill.pdfThe firm is currently an all-equity firm with assets worth $250 mill.pdf
The firm is currently an all-equity firm with assets worth $250 mill.pdfsgambikaproducts
 
The financial records of Vaughn Inc. were destroyed by fire at the e.pdf
The financial records of Vaughn Inc. were destroyed by fire at the e.pdfThe financial records of Vaughn Inc. were destroyed by fire at the e.pdf
The financial records of Vaughn Inc. were destroyed by fire at the e.pdfsgambikaproducts
 
The figure above shows graphs of oxygen consumption and of ATP synth.pdf
The figure above shows graphs of oxygen consumption and of ATP synth.pdfThe figure above shows graphs of oxygen consumption and of ATP synth.pdf
The figure above shows graphs of oxygen consumption and of ATP synth.pdfsgambikaproducts
 
The Federal Register is best described by which of the following sta.pdf
The Federal Register is best described by which of the following sta.pdfThe Federal Register is best described by which of the following sta.pdf
The Federal Register is best described by which of the following sta.pdfsgambikaproducts
 
The Federal Information Security Modernization Act (FISMA) was desig.pdf
The Federal Information Security Modernization Act (FISMA) was desig.pdfThe Federal Information Security Modernization Act (FISMA) was desig.pdf
The Federal Information Security Modernization Act (FISMA) was desig.pdfsgambikaproducts
 
The FASB requires that a statement showing the relationship of funct.pdf
The FASB requires that a statement showing the relationship of funct.pdfThe FASB requires that a statement showing the relationship of funct.pdf
The FASB requires that a statement showing the relationship of funct.pdfsgambikaproducts
 
The event that causes the release of high levels of estrogen release.pdf
The event that causes the release of high levels of estrogen release.pdfThe event that causes the release of high levels of estrogen release.pdf
The event that causes the release of high levels of estrogen release.pdfsgambikaproducts
 
The economic model of Human Capital Investment assumes that individu.pdf
The economic model of Human Capital Investment assumes that individu.pdfThe economic model of Human Capital Investment assumes that individu.pdf
The economic model of Human Capital Investment assumes that individu.pdfsgambikaproducts
 
The data contains 28 under ned features which de ne the type of tran.pdf
The data contains 28 under ned features which de ne the type of tran.pdfThe data contains 28 under ned features which de ne the type of tran.pdf
The data contains 28 under ned features which de ne the type of tran.pdfsgambikaproducts
 
The diagram below displays a concentration gradient at 4 differe.pdf
The diagram below displays a concentration gradient at 4 differe.pdfThe diagram below displays a concentration gradient at 4 differe.pdf
The diagram below displays a concentration gradient at 4 differe.pdfsgambikaproducts
 
The engineers for the Ariane 5 followed the principle of redundant .pdf
The engineers for the Ariane 5 followed the principle of redundant .pdfThe engineers for the Ariane 5 followed the principle of redundant .pdf
The engineers for the Ariane 5 followed the principle of redundant .pdfsgambikaproducts
 
The emergence of cryptocurrencies, stablecoins, and other decentrali.pdf
The emergence of cryptocurrencies, stablecoins, and other decentrali.pdfThe emergence of cryptocurrencies, stablecoins, and other decentrali.pdf
The emergence of cryptocurrencies, stablecoins, and other decentrali.pdfsgambikaproducts
 
The Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdf
The Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdfThe Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdf
The Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdfsgambikaproducts
 
The District of Columbia has 345 ICU beds under normal conditions, a.pdf
The District of Columbia has 345 ICU beds under normal conditions, a.pdfThe District of Columbia has 345 ICU beds under normal conditions, a.pdf
The District of Columbia has 345 ICU beds under normal conditions, a.pdfsgambikaproducts
 
The Dawson Corporation projects the following for the year 2014Ea.pdf
The Dawson Corporation projects the following for the year 2014Ea.pdfThe Dawson Corporation projects the following for the year 2014Ea.pdf
The Dawson Corporation projects the following for the year 2014Ea.pdfsgambikaproducts
 

More from sgambikaproducts (20)

The following information applies to the questions displayed below] .pdf
The following information applies to the questions displayed below] .pdfThe following information applies to the questions displayed below] .pdf
The following information applies to the questions displayed below] .pdf
 
The following income statement was drawn from the records of Munoz, .pdf
The following income statement was drawn from the records of Munoz, .pdfThe following income statement was drawn from the records of Munoz, .pdf
The following income statement was drawn from the records of Munoz, .pdf
 
The following excerpts have been taking from a patient � Maisie Wils.pdf
The following excerpts have been taking from a patient � Maisie Wils.pdfThe following excerpts have been taking from a patient � Maisie Wils.pdf
The following excerpts have been taking from a patient � Maisie Wils.pdf
 
The following events occurred in the recent past in Canada� The w.pdf
The following events occurred in the recent past in Canada� The w.pdfThe following events occurred in the recent past in Canada� The w.pdf
The following events occurred in the recent past in Canada� The w.pdf
 
The following diagram shows the chromosomes with their associated ge.pdf
The following diagram shows the chromosomes with their associated ge.pdfThe following diagram shows the chromosomes with their associated ge.pdf
The following diagram shows the chromosomes with their associated ge.pdf
 
The firm is currently an all-equity firm with assets worth $250 mill.pdf
The firm is currently an all-equity firm with assets worth $250 mill.pdfThe firm is currently an all-equity firm with assets worth $250 mill.pdf
The firm is currently an all-equity firm with assets worth $250 mill.pdf
 
The financial records of Vaughn Inc. were destroyed by fire at the e.pdf
The financial records of Vaughn Inc. were destroyed by fire at the e.pdfThe financial records of Vaughn Inc. were destroyed by fire at the e.pdf
The financial records of Vaughn Inc. were destroyed by fire at the e.pdf
 
The figure above shows graphs of oxygen consumption and of ATP synth.pdf
The figure above shows graphs of oxygen consumption and of ATP synth.pdfThe figure above shows graphs of oxygen consumption and of ATP synth.pdf
The figure above shows graphs of oxygen consumption and of ATP synth.pdf
 
The Federal Register is best described by which of the following sta.pdf
The Federal Register is best described by which of the following sta.pdfThe Federal Register is best described by which of the following sta.pdf
The Federal Register is best described by which of the following sta.pdf
 
The Federal Information Security Modernization Act (FISMA) was desig.pdf
The Federal Information Security Modernization Act (FISMA) was desig.pdfThe Federal Information Security Modernization Act (FISMA) was desig.pdf
The Federal Information Security Modernization Act (FISMA) was desig.pdf
 
The FASB requires that a statement showing the relationship of funct.pdf
The FASB requires that a statement showing the relationship of funct.pdfThe FASB requires that a statement showing the relationship of funct.pdf
The FASB requires that a statement showing the relationship of funct.pdf
 
The event that causes the release of high levels of estrogen release.pdf
The event that causes the release of high levels of estrogen release.pdfThe event that causes the release of high levels of estrogen release.pdf
The event that causes the release of high levels of estrogen release.pdf
 
The economic model of Human Capital Investment assumes that individu.pdf
The economic model of Human Capital Investment assumes that individu.pdfThe economic model of Human Capital Investment assumes that individu.pdf
The economic model of Human Capital Investment assumes that individu.pdf
 
The data contains 28 under ned features which de ne the type of tran.pdf
The data contains 28 under ned features which de ne the type of tran.pdfThe data contains 28 under ned features which de ne the type of tran.pdf
The data contains 28 under ned features which de ne the type of tran.pdf
 
The diagram below displays a concentration gradient at 4 differe.pdf
The diagram below displays a concentration gradient at 4 differe.pdfThe diagram below displays a concentration gradient at 4 differe.pdf
The diagram below displays a concentration gradient at 4 differe.pdf
 
The engineers for the Ariane 5 followed the principle of redundant .pdf
The engineers for the Ariane 5 followed the principle of redundant .pdfThe engineers for the Ariane 5 followed the principle of redundant .pdf
The engineers for the Ariane 5 followed the principle of redundant .pdf
 
The emergence of cryptocurrencies, stablecoins, and other decentrali.pdf
The emergence of cryptocurrencies, stablecoins, and other decentrali.pdfThe emergence of cryptocurrencies, stablecoins, and other decentrali.pdf
The emergence of cryptocurrencies, stablecoins, and other decentrali.pdf
 
The Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdf
The Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdfThe Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdf
The Daily Tribune es el �nico diario que sirve a una regi�n de seis .pdf
 
The District of Columbia has 345 ICU beds under normal conditions, a.pdf
The District of Columbia has 345 ICU beds under normal conditions, a.pdfThe District of Columbia has 345 ICU beds under normal conditions, a.pdf
The District of Columbia has 345 ICU beds under normal conditions, a.pdf
 
The Dawson Corporation projects the following for the year 2014Ea.pdf
The Dawson Corporation projects the following for the year 2014Ea.pdfThe Dawson Corporation projects the following for the year 2014Ea.pdf
The Dawson Corporation projects the following for the year 2014Ea.pdf
 

Recently uploaded

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

The dirname utility treats its argument as a pathname and wri.pdf

  • 1. *******The dirname utility treats its argument as a pathname and writes to standard output the path prefixthat is, everything up to but not including the last component: $ dirname a/b/c/d a/b/c If you give dirname a simple filename (no / characters) as an argument, dirname writes a . to standard output: $ dirname simple . Implement dirname as a bash function. Make sure it behaves sensibly when given such arguments as /. On linux please explain step by step because im so confused