Shell Commands
3323 단어 shell commandsshell commands
Shell Commands
Manual and Navigating file system
$ man #user's Manual
$ clear #clear the terminal screen
$ pwd #retrun working directory name
$ ls #list directory contents
$ ls folder #list folder contents
$ ls -l #list long format
$ ls -a #list hidden contents
$ ls -la #list hidden contents with long format
$ open . #open files and directories
$ cd #change directory
$ cd .. #go up one level of the directory tree
$ cd ~ #go home directory
$ cd - #go previous directory
$ find . -type file -name "*.txt"
$ find . -type file -name "*.json"
$ find . -type directory -name "*2"
$ which node #locate a program file in the user's path
Create and Manage files
$ touch new_file.txt #create file
$ cat new_file.txt #print contents
$ echo "hello world" #print "text"
$ mkdir #make directories
$ cp file1.txt dir1/ #copy files
$ mv file1.txt dir1/ #move files
$ mv file1.txt file2.txt #rename
$ rm file2.txt #remove files
$ rm -r dir2 #remove folder
Author And Source
이 문제에 관하여(Shell Commands), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://velog.io/@cona_tus/Shell-Commands
저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
$ man #user's Manual
$ clear #clear the terminal screen
$ pwd #retrun working directory name
$ ls #list directory contents
$ ls folder #list folder contents
$ ls -l #list long format
$ ls -a #list hidden contents
$ ls -la #list hidden contents with long format
$ open . #open files and directories
$ cd #change directory
$ cd .. #go up one level of the directory tree
$ cd ~ #go home directory
$ cd - #go previous directory
$ find . -type file -name "*.txt"
$ find . -type file -name "*.json"
$ find . -type directory -name "*2"
$ which node #locate a program file in the user's path
$ touch new_file.txt #create file
$ cat new_file.txt #print contents
$ echo "hello world" #print "text"
$ mkdir #make directories
$ cp file1.txt dir1/ #copy files
$ mv file1.txt dir1/ #move files
$ mv file1.txt file2.txt #rename
$ rm file2.txt #remove files
$ rm -r dir2 #remove folder
Author And Source
이 문제에 관하여(Shell Commands), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@cona_tus/Shell-Commands저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)