Skip to content

Latest commit

 

History

History

basics

Shell, basics

  • Task 0 - Write a script that prints the absolute path name of the current working directory
  • Task 1 - Display the contents list of your current directory.
  • Task 2 - Write a script that changes the working directory to the user’s home directory. You are not allowed to use any shell variables
  • Task 3 - Display current directory contents in a long format
  • Task 4 - Display current directory contents, including hidden files (starting with .). Use the long format.
  • Task 5 - Display current directory contents. Long format with user and group IDs displayed numerically And hidden files (starting with .)
  • Task 6 - Create a script that creates a directory named holberton in the /tmp/ directory.
  • Task 7 - Move the file betty from /tmp/ to /tmp/holberton.
  • Task 8 - Delete the file betty. The file betty is in /tmp/holberton
  • Task 9 - Delete the directory holberton that is in the /tmp directory.
  • Task 10 - Write a script that changes the working directory to the previous one.
  • Task 11 - Write a script that lists all files (even ones with names beginning with a period character, which are normally hidden) in the current directory and the parent of the working directory and the /boot directory (in this order), in long format.
  • Task 12 - Write a script that prints the type of the file named iamafile. The file iamafile will be in the /tmp directory when we will run your script.
  • Task 13 - Create a symbolic link to /bin/ls, named ls. The symbolic link should be created in the current working directory.
  • Task 14 - Create a script that copies all the HTML files from the current working directory to the parent of the working directory, but only copy files that did not exist in the parent of the working directory or were newer than the versions in the parent of the working directory. You can consider that all HTML files have the extension .html
  • Task 15 - Create a script that moves all files beginning with an uppercase letter to the directory /tmp/u. You can assume that the directory /tmp/u will exist when we will run your script
  • Task 16 - Create a script that deletes all files in the current working directory that end with the character ~.
  • Task 17 - Create a script that creates the directories welcome/, welcome/to/ and welcome/to/holberton in the current directory. You are only allowed to use two spaces in your script, not more.