Skip to content

archu0406/Exercise-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

  1. Write the command (or commands) that will display the following message 'Hello from the command line.' Ans: echo 'Hello from the command line'
  2. Write the command (or commands) that will create a file named 'hello-world.txt'. Ans:touch hello-world.txt
  3. Write the command (or commands) that will create a folder named 'my-new-folder' in current directory. Ans: mkdir my-new-folder
  4. Write the command (or commands) that will attempt to delete a folder named 'my-nonexistent-folder' and display the following message when the commands fails: 'Whoops, cannot delete a folder that does not exist'. Ans: rmdir my-nonexistent-folder || echo 'Whoops, cannot delete a folder that does not exist'
  5. Write the command (or commands) that will navigate to your desktop, and then to the parent folder of the desktop. Ans: cd ..

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages