50%

🚀

6

, , ls, rm cd. , . , . , . , ( ).

Merion Academy


 CLI

Wget

Unix- wget , HTTP, HTTPS FTP, . Linux.

wget - HTTP. http://website.com/static/images/header.jpg wget :

wget http://website.com/static/images/header.jpg

wget , , , , . , wget .


Scp

- , ? , , , . , scp. Scp - secure copy, .. . , , . cp, , , , .

foobar.txt .

scp username@remotehost.com: /path/to/foobar.txt /some/local/directory

scp .

scp /some/local/directory/foobar.txt 
username@remotehost.com: /destination/path/

, -r, .


ssh-keygen

ssh-keygen SSH. SSH, , Gitlab Bitbucket .

, SSH- Gitlab Bitbucket, , .

SSH, :

ssh-keygen -t ed25519

, ED25519. ED25519 , .

SSH Gitlab Bitbucket , !


CHMOD

Unix Unix- chmod - , ( ).

, - .

chmod , - .

chmod 664 robots.txt
chmod 775 public/images

robots.txt. .

, public/images. .


Tar

. Tar .

, :

tar -cvf my-archive.tar /path/to/directory

my-archive.tar, /path/to/directory, .

. , , - tar-. , :

tar -xvf my-archive.tar -C /home/myfolder/

Alias

- , , . , , .

alias short-command = "      "

: . , .

, . , , ~/.bashrc ~/.zshrc, Bash ZSH .


1:

. . , , . , .

, ">". ls -al myfile, .

ls -al> myfile

2:

. " ; " . , , .

ls -al; pwd;

, , , , &&.

mkdir images && cd images

, .

, . , ||.


>