Linux basic command memorandum

What is Linux

Same OS as Mac OS and Windows The OS is the software that manages the hardware of the computer.

Basic commands

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 %

Summary

This article is a memorandum in case you forget it

Recommended Posts

Linux basic command memorandum
Linux command <Basic 2>
[Basic] linux command
Linux command <Basic 1>
[Linux] Basic command summary
linux memorandum
Linux command # 4
Linux command # 3
Linux command # 5
Command memorandum
Linux command memorandum [for beginners]
Linux command (basic in basic) personal memo
Linux command list
linux at command
[Linux] Search command
Linux memorandum [links]
nc command memorandum
Linux [directory command]
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
Linux [shell command]
Basic LINUX commands
[Linux] Command / Knowledge
My linux command
Memorandum conda command
setuptools command memorandum
Linux command collection
Linux mkdir command
Linux command basics
Django's basic memorandum
[Linux] Git command
Linux (command memory)
Linux operation for beginners Basic command summary
Linux command cheat sheet
memorandum of vi command
Linux command (sequential update)
Linux command [File operation]
Python basic memorandum part 2
Basic knowledge about Linux
Basic Python command memo
Linux command for self-collection
linux command error collection 1
Linux command line shortcut
manjaro linux configuration memorandum
[Linux command] A memorandum of frequently used commands
python memorandum super basic
linux sar command CPU usage
CLI and Linux basic terms
[Linux] tar.gz compression / decompression command
What is Linux? [Command list]
virtualenv Basic command usage memo
Easy df command on Linux
Linux tar xz command memo
Linux Command Dictionary (for myself)
linux: create original Terminal command
[Note] Useful linux command collection
Linux PC spec check command
[Linux] User / group command summary
Introduction to vi command (memorandum)