Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 856 Bytes

File metadata and controls

33 lines (24 loc) · 856 Bytes

Commandline

gerneral

  • $mkdir: "make a directory" , create a directory
  • $touch: Creat a new file
  • $pwd: "Print working directory", prints the name of the working directory.
  • $cd: change directory
  • $ls:list all file and directory
  • $clear:clear all code in terminal
  • $cp:"copy", copy the file
  • $rm:delete file

Server

  • $ssh nissen@XXX.XXX.XXX.XXX: login in specific IP
  • $scp -r nissen@XXX.XXX.XXX.XXX:/remote/path ./local/path :download file from another linux
  • scp: Secure Copy Protocol
  • -r : Copy files recursively
  • $find -name 'file-name':search file

Web

  • $curl: c means "crawl the page"
curl http://www.example.com

Mode

  • $ll: a long list along with various attributes e.g. permissions, file sizes, use, group, modification time etc.
  • chmod +x filename : 'change mode'