Outputs what IT inexperienced school students have learned: smirk:
A type of OS for computers OS is an abbreviation for operating system, which is a basic program that manages the entire computer.
What the OS provides
・ When you enter characters from the keyboard, the entered characters are displayed on the screen. ・ Operate the screen with the mouse ・ When you plug in the earphones, you can hear the sound from the earphones.
In this way, it provides functions that you take for granted.
・ It is open source and anyone can use it free of charge. ・ A lot of high quality software is available -High reliability because it is widely used as a server in the world ・ Easy to operate the server
If you want to work on a Linux server, use the command using a terminal etc. The software that interprets the commands entered by the user at that time is called *** shell ***.
ls Abbreviation for list, which displays a list of folders and files directly under the current directory.
$ ls
#Show a list of file and folder names directly under your current directory
cp Abbreviation for copy, a command to copy a file as it is
$ cp [Original][Copy to]
mv Move and rename files
mv [What you want to move][Destination]
mv[Original file name][New file name]
rm Delete file
rm[File name you want to delete]
mkdir Create a new directory (folder) on Linux
mkdir[Directory name]
touch If the specified file does not exist, a new file from will be created. It is also possible to change the access time and update time of the specified file to the current time. You can change it at any time
#Create a new file ・ Change the access time and update time to the current time
touch [file name]
#The access time and last update date of the sample file are set to October 1, 2019 15:Change to 00
touch -t 201910011500 sample
cat A command to combine and display the contents of a file
#Browse files
cat[file name]
#Combine files
cat[File 1][File 2]
Linux is built on the assumption that multiple users can log in and operate on one machine at the same time. I want to prevent other users from seeing or editing files that I don't want to see. So, set *** general user *** and *** root user ***
The difference between a regular user and a root user is the level of permissions on the file. While general users can only perform operations that they are allowed to do, root users have all control rights, including files owned by other users.
When logging in to the remote server with SSH, you can adjust the authority on the remote server by logging in by specifying the user name.
$ ssh [email protected]
$ ssh [email protected]
Avoid using the root user with SSH, as the root user can view all files and execute all commands.
Recommended Posts