Embedded Linux Design Course summary the second week of classroom

#Linux introduced, using the Linux operating (command), Linux development tools (will use, enough)
# 1. Installing Linux development environment, vm virtual machine, why not choose a dual system (by means of software simulation PC), because the embedded interact with the kernel development will cause the system to crash.
Linux distributions Redhat (centos7), ubuntu (18.04 ), deepin, self-installation, do not understand Baidu.
# 2.Linux introduction (the POSIX, GPL, the GNU)
1991 Linux0.1
GPL: the open source community
the GPL 5.0 -Linux
the POSIX standard: Portable Operating System Interface (cross-platform conditions)
the GNU plan: gun is not unix; (Excellent tools gcc, gdb)
# 3.Linux use Windows VS
Linux Orientation: developers (efficiency); 32 positioning: regular user (simple)
Linux use: the goal is to command from the mouse 1000+
learning objectives: 60 commands
to learn : back, remember, practice

# 4 study summary command
su: switch the root
sudo -i: Switch to the root user
su username: Switch to the regular user
adduser user1: create user
passwd: change the user password
deluser: delete user
file manipulation commands
ls: view the current directory
ls -l : View file detailed properties
ls-a: see all the files
classified files: regular files (-), catalog file (D), the device file (c / b) [c represents a character device, b represents block device], the link file (L);
Linux special files: file pipe (p), the stack file (f), shared file (S);
properties Linux file: operating authority readable r, w can be written, x execute;
authority description: three 9 characters (current user u, the current user group g, other users O);
for example: -rwxr-xr-x
modify file permissions: the chmod
the chmod UW hello.c
the chmod + W U hello.c
the chmod + G W hello.c
O + w hello.c the chmod
the chmod 655 hello.c
weight weight r is 4, the weight w 2 is a weight, the weight of the weight x 1
655 represents -rw-r-xr-x;
created file viewing and deleting
touch hello.c :Create a file
cat hello.c: view the contents of the file
rm hello.c: delete the file
rm -f hello.c: forced to delete
a file editor: gedit hello.c
gcc hello.c: compile the file
./a.out: execute the file
directory operations:
cd directory name or cd directory name / folder
cd /: root directory
cd:. current directory
cd ~ current user working directory
a directory on the cd ...
relative and absolute paths
cd class_c ++ / relative path
cd / root / class_c ++ / absolute path
mkdir: Create a directory
mkdir 0303 kk mm: Create three directories
rm-r kk: delete directory KK
rmdir KK: remove non-empty directories
mkdir -p 0303 / kk / mm: Create a directory structure in accordance with
copy and shear
cp hello.c 0303 : copy the file to 0303
CP /root/hello.c / 0303 the root: copying files to 0303
CP -R & lt: copy directory
mv hello.c mm: file to cut mm
Music Videos kk KK1: rename kk corresponds to KK1
Clear: clear screen
tar: compression
pwd: display in which a directory

Released six original articles · won praise 0 · Views 310

Guess you like

Origin blog.csdn.net/wwgds/article/details/104641181