In the experiment class, I contacted Linux and wrote a command on the Linux that I learned here. Experiment name the establishment of embedded development environment Experiment Objective based on PC virtual machine installation familiar with Linux common commands linux common commands first, Linux access and exit system In the process of installing the system can create two kinds of accounts root--Superuser account (System administrator), use this account can do anything in the system, ordinary users--for ordinary users, can do limited operations. 1 Enter the first step: Enter the user's login name the second step: Enter the user Delphi password into Linux, press the right button, select a new terminal, screen display: [Root@loclhost/root] # The prompt for super User is: "#"; [Root@loclhost /ROOT] $ non-superuser prompt is: "$"
2 Modify Password command for passwd
3 Exit at the shell prompt, type exit command II, CD [dirname] transform working directory to dirname. DirName represents an absolute or relative path. Cd/usr/bin jumps to the top of the current directory: CD.
iii. Copy, delete, and move commands for Linux files 1 CP Command
The function of this command is to copy the given file or directory to another file or directory, which is as powerful as the copy command under MS-DOS.
CP [option] source file or directory destination file or directory
-A This option is usually used when copying directories. It retains the link, file attributes, and recursively copies the directory, which is equal to the combination of the DPR option.
2 MV Command users can use the MV command to rename files or directories or to move files from one directory to another. This command is a combination of Ren and move under MS-DOS.
MV [option] source file or directory target file or directory 3 RM command Users can delete unwanted files with the RM command. The function of this command is to delete one or more files or directories in a directory, and it can also delete a directory and all the files and subdirectories under it. For linked files, only the link is disconnected and the source file remains unchanged.
RM [Options] File
Iv. creation and deletion of Linux directory commands The 1 mkdir command creates a directory (similar to the MD command under MS-DOS) mkdir [options] Dir-name
2 rmdir command to delete empty directory rmdir [options] Dir-name
The ls command ls is a shorthand for the English word list, and its function is to list the contents of the catalog. This is one of the most commonly used commands for users, because users need to view the contents of a directory from time to times. This command is similar to the dir command under DOS. ls [options] [directory or file]