Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 691 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 691 Bytes

test

Тестовое задание

1) Command line:

  • Write a one-line command that displays the first 20 characters of a user's ssh public key:
$ cut -d " " -f2  .ssh/my_key.pub | cut -b 1-20
  • Write a one-line command that checks the syntax of all php files in the current folder:
$ for i in *.php; do php -l $i; done

2) Git:

  • Write a git command that displays the hash of the current revision:
$ git log -1 --pretty=format:"%H"
  • Write a git command that displays the code changes of the last 5 commits for the file index.php (in the current folder)
$ git log -p -5 composer.json

3) PHP

  • See file [index.php] (/index.php)