Categories Linux

[Linux] Useful Commands in Shell [Vi]

Root user thường có #, normal user thường có $. Thông tin của user ở /etc/passwd Quit vim không lưu bằng :q!, lưu xong quit :wq Để search file theo một từ khóa: Grep cũng search được directory recursively: Có thể dùng printf để in ra formatted text:…

Read More
Categories Linux

[Linux] Useful Commands in Shell

To make bash script, create a file with extension .sh and add the code: to the file. Example: To run it: Note: Just enter FILE_NAME.sh is wrong. Related posts: [Linux] Useful Commands in Shell [Vi] [Linux] – Copy and paste in Vim

Read More
Categories AWS

[AWS Lightsail] – SSH to your instance

You can ssh to your instance with filezilla with this tutorials:Transfer files securely to Lightsail Linux instances with SFTP You can also connect to your instance using command prompt. Go into the directory where your private key file locates and enter this command to the window: Related posts:…

Read More
Categories AWS

[AWS CLI] – Basic Operations

Tải AWS CLI trên mạng về. Config nó với rootkey file, cái này bạn chỉ có thể có khi khởi tạo tài khoản lần đầu. Bạn có thể tạo lại nó ở trang chủ console, click vào tên tài khoản của bạn -> Security credentials. Bạn cũng có…

Read More
Categories Cloud

[Jenkins Tutorials – 01] Start Jenskins with Docker

Bạn có thể tìm và cài đặt jenkins bằng giao diện của Docker hoặc dùng CLI với đoạn mã sau -d: để run detached–name: tên container-p: expose port-v: expose volumne Dùng 1 free tool để tunnel localhost lên internet (Ở đây mình dùng pinggy). Sau đó bạn vào…

Read More