Skip to main content
Làm việc với thư mục
<...> : must have- cd <absolute/relative path>: change directory cd : to home directory cd .. : backward 1 step
- ls : list [-option] -a : all files (include hidden files) -l :long (show specific) -h : show sizes of file/folder with K symbol for KB ex list -lsa
- pwd : print working directory
- man <command you want to see help> : manual for others command
- whoami : who am i
- clear : clear screen
- mkdir [-option] <folder name> : make directories -p : parent (parent/child/otherchild)
- rmdir [-option] : remove directories -p : remove parent and childs
- file <filename> : determine file type (ASCII text for .md, 8bit RGB for .png file,...)
- touch <file name> : create files (add space between files to create mutiple file at a time)
- rm [-option] <file name> : remove file -f : force remove, ignore warning, no confirmation -i : promt (confirm) before removal) -r : recursive
- cp <file name> <absolute path>/<newname> : copy file to new location/ create copy file at current location
- mv <file/folder name> <new file/folder name> : rename file mv <filename> <absolute path/new filename> : move and rename file at the same time
Comments
Post a Comment