Same OS as Mac OS and Windows The OS is the software that manages the hardware of the computer.
ls Check the files directly under the current directory
terminal.
% ls  //Check the file directly below
Applications		Pictures
Desktop				Public
~%
pwd Check current directory
terminal.
Desktop % pwd  //Check current directory
/Users/Desktop
Desktop %
mkdir Directory creation
terminal.
Desktop % mkdir sample  //Create sample directory
Desktop %
cd Move directory
terminal.
Desktop % cd sample  //Move to sample directory
sample %
touch Create an empty file
terminal.
sample % touth sample.html  //Create an empty file
sample %
mv change name
terminal.
sample % mv smaple.html sample2.html  //Change
 sample % ls  //Check the directory directly under
 sample2.html
sample %
rm Delete files / directories
terminal.
sample % rm -r sample2.html  //Delete
ample % ls  //Check the directory directly under
sample % 
history Record of past commands
terminal.
sample % history  //Check history
 1010  ls
 1011  cd sample.thml
 1012  cd sample.html
 1013  echo sample.html
 1014  echo "Hello world > sample.html\na\n
sample %
This article is a memorandum in case you forget it
Recommended Posts