linux学习笔记一
文章目录
- linux学习笔记一
- Linux
- package operation of looking
- files operation
- help commands
- own commands
- echo
- tunnel
- echo again
- user or root
- processing
- alias again
- finding
这个是我在学习linux系统的时候的一点的小小的总结,希望对大家有一定的在帮助啦。
Linux
package operation of looking
hyx@hyx-computer:/$ dir
bin dev home lib lib64 media opt root sbin srv tmp var
boot etc init lib32 libx32 mnt proc run snap sys usr
hyx@hyx-computer:/$ cd home/
hyx@hyx-computer:/home$ di
Command 'di' not found, but can be installed with:
sudo apt install di
hyx@hyx-computer:/home$ dir
hyx
hyx@hyx-computer:/home$ cd hyx
hyx@hyx-computer:~$ dir
2048 2048.c cmatrix-1.2a cmatrix-1.2a.tar.gz nohup.out wget yum
hyx@hyx-computer:~$ cd ..
hyx@hyx-computer:/home$ cd ..
hyx@hyx-computer:/$ dir
bin dev home lib lib64 media opt root sbin srv tmp var
boot etc init lib32 libx32 mnt proc run snap sys usr
hyx@hyx-computer:/$ cd mnt
hyx@hyx-computer:/mnt$ dir
c d e f
hyx@hyx-computer:/mnt$ pwd
/mnt
hyx@hyx-computer:/mnt$
hyx@hyx-computer:/mnt/c/users/1/desktop$ dir
1.jpg QQ截图20220111092930.jpg fireworks.html
18511a09270bd94cc7b9a0fffa1e13f1ae482c83.jpg@640w_400h_100Q_1c.webp ShadowsocksR-win-4.9.0 msedge.exe.lnk
API5.0.json Visual\ Studio\ Code.lnk node
GitHub\ Desktop.lnk WPS\ Office.lnk node1
Google\ Chrome.lnk WinRAR.lnk python_server
Notepad++.lnk animals wxFormBuilder.lnk
OpenCV中文官方文档.pdf animals.tar.gz ximalaya
QQ.exe.lnk desktop.ini 百度网盘.lnk
hyx@hyx-computer:/mnt/c/users/1/desktop$ ls
1.jpg QQ截图20220111092930.jpg fireworks.html
18511a09270bd94cc7b9a0fffa1e13f1ae482c83.jpg@640w_400h_100Q_1c.webp ShadowsocksR-win-4.9.0 msedge.exe.lnk
API5.0.json 'Visual Studio Code.lnk' node
'GitHub Desktop.lnk' 'WPS Office.lnk' node1
'Google Chrome.lnk' WinRAR.lnk python_server
Notepad++.lnk animals wxFormBuilder.lnk
OpenCV中文官方文档.pdf animals.tar.gz ximalaya
QQ.exe.lnk desktop.ini 百度网盘.lnk
hyx@hyx-computer:/mnt/c/users/1/desktop$ pwd
/mnt/c/users/1/desktop
hyx@hyx-computer:/mnt/c/users/1/desktop$
hyx@hyx-computer:/mnt/c/users/1/desktop$ file 1.jpg
1.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 144x144, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=3, orientation=upper-left], baseline, precision 8, 960x600, components 3
hyx@hyx-computer:/mnt/c/users/1/desktop$ file 1.jpg
1.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 144x144, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=3, orientation=upper-left], baseline, precision 8, 960x600, components 3
hyx@hyx-computer:/mnt/c/users/1/desktop$ file API5.0.json
API5.0.json: JSON data
hyx@hyx-computer:/mnt/c/users/1/desktop$
files operation
hyx@hyx-computer:/mnt/c/users/1/desktop$ mkdir learning_linux
hyx@hyx-computer:/mnt/c/users/1/desktop$ dir
1.jpg ShadowsocksR-win-4.9.0 msedge.exe.lnk
18511a09270bd94cc7b9a0fffa1e13f1ae482c83.jpg@640w_400h_100Q_1c.webp Visual\ Studio\ Code.lnk node
API5.0.json WPS\ Office.lnk node1
GitHub\ Desktop.lnk WinRAR.lnk python_server
Google\ Chrome.lnk animals wxFormBuilder.lnk
Notepad++.lnk animals.tar.gz ximalaya
OpenCV中文官方文档.pdf desktop.ini 百度网盘.lnk
QQ.exe.lnk fireworks.html
QQ截图20220111092930.jpg learning_linux
hyx@hyx-computer:/mnt/c/users/1/desktop$ cd learning_linux/
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
hyx@hyx-computer:/mnt/c/users/1/desktop$ less 1.jpg
hyx@hyx-computer:/mnt/c/users/1/desktop$ mkdir learning_linux
hyx@hyx-computer:/mnt/c/users/1/desktop$ dir
1.jpg ShadowsocksR-win-4.9.0 msedge.exe.lnk
18511a09270bd94cc7b9a0fffa1e13f1ae482c83.jpg@640w_400h_100Q_1c.webp Visual\ Studio\ Code.lnk node
API5.0.json WPS\ Office.lnk node1
GitHub\ Desktop.lnk WinRAR.lnk python_server
Google\ Chrome.lnk animals wxFormBuilder.lnk
Notepad++.lnk animals.tar.gz ximalaya
OpenCV中文官方文档.pdf desktop.ini 百度网盘.lnk
QQ.exe.lnk fireworks.html
QQ截图20220111092930.jpg learning_linux
hyx@hyx-computer:/mnt/c/users/1/desktop$ cd learning_linux/
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ mkdir test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cd test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ pwd
/mnt/c/users/1/desktop/learning_linux/test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ vi test1.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat test1.txt
hello
linux.
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cp test1.txt test1_.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat test1_.txt
hello
linux.
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt test1_.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cd ..
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ mkdir test1_
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ tree
.
├── test1
│ ├── test1.txt
│ └── test1_.txt
└── test1_
2 directories, 2 files
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ mv test1/test1_.txt test1_
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ tree
.
├── test1
│ └── test1.txt
└── test1_
└── test1_.txt
2 directories, 2 files
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
hyx@hyx-computer:/mnt/c/users/1/desktop$ pwd
/mnt/c/users/1/desktop
hyx@hyx-computer:/mnt/c/users/1/desktop$ ls -l ?.???
-rwxrwxrwx 1 hyx hyx 176844 Jan 20 23:07 1.jpg
hyx@hyx-computer:/mnt/c/users/1/desktop$ ls -l *.???
-rwxrwxrwx 1 hyx hyx 176844 Jan 20 23:07 1.jpg
-rwxrwxrwx 1 hyx hyx 2358 Nov 1 09:44 'GitHub Desktop.lnk'
-r-xr-xr-x 1 hyx hyx 2261 Oct 15 13:18 'Google Chrome.lnk'
-rwxrwxrwx 1 hyx hyx 669 Nov 25 15:54 Notepad++.lnk
-rwxrwxrwx 1 hyx hyx 8822942 Jan 13 22:19 OpenCV中文官方文档.pdf
-rwxrwxrwx 1 hyx hyx 1098 Jan 19 21:45 QQ.exe.lnk
-rwxrwxrwx 1 hyx hyx 244343 Jan 11 09:29 QQ截图20220111092930.jpg
-rwxrwxrwx 1 hyx hyx 1399 Jan 7 11:24 'Visual Studio Code.lnk'
-rwxrwxrwx 1 hyx hyx 2403 Jan 20 2021 'WPS Office.lnk'
-r-xr-xr-x 1 hyx hyx 500 Oct 2 16:17 WinRAR.lnk
-rwxrwxrwx 1 hyx hyx 282 Apr 22 2021 desktop.ini
-rwxrwxrwx 1 hyx hyx 1898 Jan 19 19:35 msedge.exe.lnk
-rwxrwxrwx 1 hyx hyx 709 Nov 25 19:22 wxFormBuilder.lnk
-rwxrwxrwx 1 hyx hyx 613 Nov 26 09:52 百度网盘.lnk
ShadowsocksR-win-4.9.0:
total 2868
-rwxrwxrwx 1 hyx hyx 35817 Sep 18 22:59 LICENSE
-rwxrwxrwx 1 hyx hyx 1022464 Sep 18 22:59 ShadowsocksR-dotnet2.0.exe
-rwxrwxrwx 1 hyx hyx 543 Sep 18 22:59 ShadowsocksR-dotnet2.0.exe.sig
-rwxrwxrwx 1 hyx hyx 1023488 Sep 18 22:59 ShadowsocksR-dotnet4.0.exe
-rwxrwxrwx 1 hyx hyx 543 Sep 18 22:59 ShadowsocksR-dotnet4.0.exe.sig
-rwxrwxrwx 1 hyx hyx 219714 Sep 18 22:59 chn_ip.txt
-rwxrwxrwx 1 hyx hyx 29555 Jan 19 20:44 gui-config.json
drwxrwxrwx 1 hyx hyx 4096 Jan 2 16:28 temp
drwxrwxrwx 1 hyx hyx 4096 Sep 19 20:53 templates
-rwxrwxrwx 1 hyx hyx 111 Jan 21 11:20 transfer_log.json
-rwxrwxrwx 1 hyx hyx 592384 Sep 18 22:59 user.rule
hyx@hyx-computer:/mnt/c/users/1/desktop$
help commands
hyx@hyx-computer:/mnt/c/users/1/desktop$ type
hyx@hyx-computer:/mnt/c/users/1/desktop$ type type
type is a shell builtin
hyx@hyx-computer:/mnt/c/users/1/desktop$ typr ls
typr: command not found
hyx@hyx-computer:/mnt/c/users/1/desktop$ type ls
ls is aliased to `ls --color=auto'
hyx@hyx-computer:/mnt/c/users/1/desktop$ type tree
tree is hashed (/usr/bin/tree)
hyx@hyx-computer:/mnt/c/users/1/desktop$ type aafire
aafire is /usr/bin/aafire
hyx@hyx-computer:/mnt/c/users/1/desktop$ type dir
dir is hashed (/usr/bin/dir)
hyx@hyx-computer:/mnt/c/users/1/desktop$ type sl
sl is /usr/games/sl
hyx@hyx-computer:/mnt/c/users/1/desktop$
hyx@hyx-computer:/mnt/c/users/1/desktop$ mkdir --help
Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.
Mandatory arguments to long options are mandatory for short options too.
-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask
-p, --parents no error if existing, make parent directories as needed
-v, --verbose print a message for each created directory
-Z set SELinux security context of each created directory
to the default type
--context[=CTX] like -Z, or if CTX is specified then set the SELinux
or SMACK security context to CTX
--help display this help and exit
--version output version information and exit
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report mkdir translation bugs to <https://translationproject.org/team/>
Full documentation at: <https://www.gnu.org/software/coreutils/mkdir>
or available locally via: info '(coreutils) mkdir invocation'
hyx@hyx-computer:/mnt/c/users/1/desktop$
hyx@hyx-computer:/mnt/c/users/1/desktop$ cal -3
December 2021 January 2022 February 2022
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 4 1 1 2 3 4 5
5 6 7 8 9 10 11 2 3 4 5 6 7 8 6 7 8 9 10 11 12
12 13 14 15 16 17 18 9 10 11 12 13 14 15 13 14 15 16 17 18 19
19 20 21 22 23 24 25 16 17 18 19 20 21 22 20 21 22 23 24 25 26
26 27 28 29 30 31 23 24 25 26 27 28 29 27 28
30 31
hyx@hyx-computer:/mnt/c/users/1/desktop$ cal --help
cal: invalid option -- '-'
Usage: cal [general options] [-jy] [[month] year]
cal [general options] [-j] [-m month] [year]
ncal -C [general options] [-jy] [[month] year]
ncal -C [general options] [-j] [-m month] [year]
ncal [general options] [-bhJjpwySM] [-H yyyy-mm-dd] [-s country_code] [[month] year]
ncal [general options] [-bhJeoSM] [year]
General options: [-31] [-A months] [-B months] [-d yyyy-mm]
hyx@hyx-computer:/mnt/c/users/1/desktop$
hyx@hyx-computer:/mnt/c/users/1/desktop$ apropos cd
apt-cdrom (8) - APT CD-ROM management utility
bcd (6) - "reformat input as punch cards, paper tape ...
gcov-dump (1) - offline gcda and gcno profile dump tool
gcov-dump-9 (1) - offline gcda and gcno profile dump tool
gcov-tool (1) - offline gcda profile processing tool
gcov-tool-9 (1) - offline gcda profile processing tool
Net::DNS::RR::CDNSKEY (3pm) - DNS CDNSKEY resource record
Net::DNS::RR::CDS (3pm) - DNS CDS resource record
Net::DNS::SEC::ECDSA (3pm) - DNSSEC ECDSA digital signature algorithm
rsyncd.conf (5) - configuration file for rsync in daemon mode
systemd-timesyncd (8) - Network Time Synchronization
systemd-timesyncd.service (8) - Network Time Synchronization
tcdrain (3) - get and set terminal attributes, line contr...
timesyncd.conf (5) - Network Time Synchronization configuration ...
timesyncd.conf.d (5) - Network Time Synchronization configuration ...
x86_64-linux-gnu-gcov-dump (1) - offline gcda and gcno profile dum...
x86_64-linux-gnu-gcov-dump-9 (1) - offline gcda and gcno profile d...
x86_64-linux-gnu-gcov-tool (1) - offline gcda profile processing tool
x86_64-linux-gnu-gcov-tool-9 (1) - offline gcda profile processing...
XML::LibXML::CDATASection (3pm) - XML::LibXML Class for CDATA Sect...
hyx@hyx-computer:/mnt/c/users/1/desktop$
hyx@hyx-computer:/mnt/c/users/1/desktop$ man -k mkdir
mkdir (1) - make directories
mkdir (2) - create a directory
mkdirat (2) - create a directory
hyx@hyx-computer:/mnt/c/users/1/desktop$
hyx@hyx-computer:/mnt/c/users/1/desktop$ whatis mkdir
mkdir (1) - make directories
mkdir (2) - create a directory
hyx@hyx-computer:/mnt/c/users/1/desktop$
own commands
hyx@hyx-computer:/mnt/c/users/1/desktop$ alias mkdirss = "mkdir test3"
-bash: alias: mkdirss: not found
-bash: alias: =: not found
-bash: alias: mkdir test3: not found
hyx@hyx-computer:/mnt/c/users/1/desktop$ alias mkdirss="mkdir test3"
hyx@hyx-computer:/mnt/c/users/1/desktop$ cd learning_linux/
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ dir
test1 test1_ test2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ mkdirss
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ dir
test1 test1_ test2 test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cd test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ dir
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ mkdirss
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ dir
test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias mkdirss='mkdir test3'
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias mkdirss='mkdir test3'
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ unalias mkdirss
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$
echo
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ echo hello
hello
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ echo hello world
hello world
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ echo hello world linux
hello world linux
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test3$ cd ..
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cd test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ echo hello > test2.yxt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt test2.yxt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat test2.yxt
hello
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ echo hello world linux >> test2.yxt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat test2.yxt
hello
hello world linux
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat < test2.yxt
hello
hello world linux
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$
tunnel
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ ls -l |sort
-rwxrwxrwx 1 hyx hyx 13 Jan 21 09:43 test1.txt
-rwxrwxrwx 1 hyx hyx 24 Jan 21 12:55 test2.yxt
total 0
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls
test1 test1_ test2 test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -l |sort
drwxrwxrwx 1 hyx hyx 4096 Jan 21 09:46 test1_
drwxrwxrwx 1 hyx hyx 4096 Jan 21 11:32 test2
drwxrwxrwx 1 hyx hyx 4096 Jan 21 11:44 test3
drwxrwxrwx 1 hyx hyx 4096 Jan 21 12:54 test1
total 0
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ wc
^C
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ^C
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -l |wc
5 38 189
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -l |wc
5 38 189
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -l |grep
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cd test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ ls -l |grep test1.txt
-rwxrwxrwx 1 hyx hyx 13 Jan 21 09:43 test1.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ ls -l |grep test1.txt
-rwxrwxrwx 1 hyx hyx 13 Jan 21 09:43 test1.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ > test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ dir
test1.txt test2.yxt test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cat test3.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$
echo again
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ echo $(1+2+9)
1+2+9: command not found
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ echo $((1+2+9))
12
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ echo $((1+2+9+$((10+57))))
79
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ echo hello $((1057))
hello 1057
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test1$ cd ..
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cd test2
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ dir
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ >{01..10}.txt
-bash: {01..10}.txt: ambiguous redirect
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ dir
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ touch text{01..10}.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ dir
text01.txt text03.txt text05.txt text07.txt text09.txt
text02.txt text04.txt text06.txt text08.txt text10.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ touch {00..05}.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ dir
00.txt 02.txt 04.txt text01.txt text03.txt text05.txt text07.txt text09.txt
01.txt 03.txt 05.txt text02.txt text04.txt text06.txt text08.txt text10.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ rm {01..03}.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ dir
00.txt 05.txt text02.txt text04.txt text06.txt text08.txt text10.txt
04.txt text01.txt text03.txt text05.txt text07.txt text09.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ xxx=hello
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ echo xxx
xxx
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ echo $xx
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ echo $xxx
hello
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ whatis printenv
printenv (1) - print all or part of environment
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ echo "hdfjsl dhfjls "
hdfjsl dhfjls
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ echo $(ls -l)
total 0 -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:33 00.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:33 04.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:33 05.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text01.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text02.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text03.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text04.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text05.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text06.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text07.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text08.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text09.txt -rwxrwxrwx 1 hyx hyx 0 Jan 21 17:32 text10.txt
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ history
99 pip3 install jupyter
100 jupyter notebook
101 sudo apt install jupyter-core
102 jupyter notebook
103 jupyter
104 jupyter -h
105 nohup jupyter notebook --allow-root&
106 ps us
107 ps ux
108 jupyter notebook --generate-config
109 pip3 install jupyter
110 jupyter --generate-config
111 nohup jupyter notebook&
112 ps ux
113 exit
114 top
115 clear
116 free
117 free -h
118 clear
119 exit
120 sudo apt install express
121 cd /mnt
122 cd c
123 cdusers
124 cd users
125 cd 1
126 cd desktop
127 node testofdesktop.js
128 sudo apt install node
129 sudo apt-get update
130 sudo apt install nodejs
131 node testofdesktop.js
132 exit
133 code .
134 ssh root@ 123.56.107.143
135 ssh root@123.56.107.143
136 exit
137 ssh @123.56.107.143
138 exit
139 ssh root@123.56.107.143
140 clear
141 ssh root@123.56.107.143
142 exit
143 ssh root@123.56,107.143
144 ssh root@123.56.107.143
145 exit
146 ssh root@123.56.107.143
147 exit
148 ps ux
149 ssh root@123.56.107.143
150 ip
151 ifconfig
152 ipconfig
153 sudo apt install net-tools
154 exit
155 ssh root@123.56.107.143
156 exit
157 ssh root@123.56.107.143
158 exit
159 ssh root@123.56.107.143
160 exit
161 ssh root@123.57.107.143
162 ssh root@123.56.107.143
163 exit
164 exit
165 ssh root@123.56.107.143
166 exit
167 cd /mnt
168 cd c
169 cd users
170 cd 2
171 cd 1
172 cd desktop
173 dir
174 cd w
175 cd water/
176 dir
177 cd python_code/
178 nohup python3 -u main.py > log1.log&
179 nohup python3 -u main.py > log1.log&
180 ps ux
181 kill 39
182 ps ux
183 dir
184 cat log1.log
185 ps ux
186 ckear
187 clear
188 ps ux
189 exit
190 ssh root@123.56.107.143
191 exit
192 ssh root@123.56.107.143
193 exit
194 cd /mnt
195 cd c
196 cd users
197 cd 1
198 cd desktop
199 cd water/
200 cd python_code/
201 dir
202 tree
203 cat log1.log
204 ps ux
205 clear
206 ps ux
207 ps ux
208 cat log1.log
209 ps ux
210 clear
211 ps ux
212 cat log1.log
213 clear
214 cat log1.log
215 clear
216 cat log1.log
217 exit
218 ssh root@123.56.107.143
219 exit
220 PS ux
221 ps ux
222 kill -9 38
223 ps ux'
224 ps ux
225 cd /mn
226 cd /mnt
227 cd c
228 cd 1
229 cd desktio
230 cd desktop
231 dir
232 tree python_server/
233 cd none
234 cd water/
235 tree
236 cd python_code/
237 nohup python3 -u main.py > log2.log&
238 ssh root@123.56.107.143
239 exit
240 ps ux
241 kill -9 225
242 ps ux
243 exit
244 cd .mnt
245 cd /mnt
246 cd c
247 cd users
248 cd 1
249 dir
250 cd wc/
251 cd ../
252 cd water
253 cd desktop
254 dir
255 cd water/
256 dir
257 cd python_code/
258 dir
259 nohup python3 -u main.py > log3.log&
260 ps ux
261 ssh root@123.56.107.143
262 clear
263 ps ux
264 exit
265 cd /mnt
266 cd c
267 cd users
268 cd 1
269 cd desktop
270 dir
271 cd water/
272 tree
273 cat log3.log
274 cd python_code/
275 cat log3.log
276 cd ../
277 dir
278 unrar x test.rar
279 ps ux
280 kill -9 94
281 ps ux
282 exit
283 ssh root@123.107.143
284 ssh root@123.56.107.143
285 exit
286 cd /mnt
287 cd c
288 cd users
289 cd1
290 cd 1
291 cd desktop
292 dir
293 cdw
294 cd water/
295 dir
296 cd python_code/
297 dir
298 ps ux
299 nohup python3 -u main.py > log4.log&
300 ps ux
301 clear
302 ps ux
303 ssh root@123.56.107.143
304 clear
305 ps ux
306 kill -9 46
307 ps ux
308 exit
309 ssh root@123.56.107.143
310 exit
311 clear
312 ssh root@123.56.107.143
313 exit
314 clear
315 ssh root@82.157.150.228
316 exit
317 clear
318 ssh root82.157.150.228
319 ssh root@82.157.150.228
320 exit
321 cd /mnt
322 cd c
323 cd users
324 cd 1
325 cd desktop
326 dir
327 cd 电子电路实验报告(红外实验)
328 tree
329 exit
330 cd /mnt
331 cd c
332 cd users
333 cd 1
334 cd desktop
335 dir
336 clear
337 dir
338 cd digital_experiment
339 clear
340 tree
341 clear
342 tree
343 TREE
344 clear
345 tree
346 clear
347 tree
348 ls
349 tree -1
350 tree -T
351 tree -R
352 tree -L 1
353 clear
354 exit
355 ssh root@82.157.150.283\
356 ssh root@82.157.150.283
357 clear
358 'clear
359 clear
360 clear
361 exit
362 clear
363 ssh root@123.56.107.143
364 exit
365 clear
366 cal
367 cal -4
368 cal -3
369 clear
370 cal -3
371 ps ux
372 htop
373 clear
374 exit
375 clea
376 rclear
377 clear
378 git status
379 gi
380 git status
381 git checkout hyx
382 git status
383 git add --all
384 git commit -m "进行了一下调整。"
385 git config --global user.name "hyx"
386 git config --global user.email "hyx"
387 git commit -m "进行了一下调整。"
388 git log
389 clear
390 git status
391 git push origin hyx
392 exit
393 clear
394 sudo apt-get remove docker docker-engine docker.io containerd runc
395 cd /mnt
396 cd e
397 dir
398 cd 1
399 dir
400 cd documents
401 dir
402 cd..
403 cd ../
404 dir
405 mkdir docker
406 dir
407 cd docker/
408 sudo apt-get update
409 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
410 sudo apt-key fingerprint 0EBFCD88
411 sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/ \
412 $(lsb_release -cs) \
413 stable"
414 sudo apt-get install docker-ce docker-ce-cli containerd.io
415 sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
416 sudo docker run hello-world
417 sudo service docker status
418 docker version
419 vi /etc/sysconfig/selinux
420 sudo service docker start
421 sudo docker run hello-world
422 service docker start
423 sudo service docker start
424 sudo docker run hello-world
425 service docker start
426 sudo service docker start
427 sudo docker run hello-world
428 \
429 docker run --help
430 sudo docker ps -a
431 sudo usermod -aG docker $USER
432 sudo cgroupfs-mount
433 sudo service docker start
434 sudo service docker stop
435 sudo service docker start
436 sudo service docker restart
437 cd
438 dir
439 cd /mnt
440 dir
441 cd ../
442 docker run ubuntu:15.10 /bin/echo "Hello world"
443 docker run --help
444 apt-cache policy docker-ce
445 sudo apt install docker-ce
446 sudo systemctl status docker
447 sudo apt-get install -y docker.io
448 sudo docker version
449 curl -sSL https://get.docker.com/ | sudo sh
450 sudo docker version
451 which docker
452 whereis docker
453 sudo vi /etc/default/docker
454 sudo vi /etc/default/docker\
455 sudo service docker restart
456 ps -ef | grep docker
457 docker info
458 ps -ef | grep docker
459 ps ux
460 sudo service docker stop
461 ps -ef | grep docker
462 sudo docker version
463 exit
464 clear
465 ssh root @ 123.56.107.143
466 ssh root@123.56.107.143
467 cd /mnt
468 cd e
469 dir
470 cd 1
471 dir
472 cd Documents/
473 dir
474 cd ../
475 cd c
476 dir
477 cd users
478 cd s
479 cd 1
480 dir
481 cd Documents/
482 dir
483 sudo apt install gdebi
484 clear
485 sudo apt install gdebi
486 dir
487 clear
488 dir
489 sudo dpkg -i NHOS-Flash-Tool-1.0.6.deb
490 sudo apt install dpkg
491 sudo apt --fix-broken install dpkg
492 exit
493 ssh root@123.56.107.143
494 ssh-keygen -R 123.56.107.143
495 ssh root@123.56.107.143
496 clear
497 exit
498 cd /mnt
499 cd c
500 cd users
501 cd 1
502 cd desktop
503 dir
504 cd project
505 dir
506 tree
507 git status
508 git add --all
509 git satatus
510 git status
511 git commit -m "initial commit"
512 git push origin master
513 //取消http代理
514 git config --global --unset http.proxy
515 //取消https代理
516 git config --global --unset https.proxy
517 //取消http代理
518 git config --global --unset http.proxy
519 //取消https代理
520 git config --global --unset https.proxy
521 //取消http代理
522 git config --global --unset http.proxy
523 //取消https代理
524 git config --global --unset https.proxy
525 //取消http代理
526 git config --global --unset http.proxy
527 //取消https代理
528 git config --global --unset https.proxy
529 //取消http代理
530 git config --global --unset http.proxy
531 //取消https代理
532 git config --global --unset https.proxy
533 //取消http代理
534 git config --global --unset http.proxy
535 //取消https代理
536 git config --global --unset https.proxy
537 //取消http代理
538 git config --global --unset http.proxy
539 //取消https代理
540 git config --global --unset https.proxy
541 //取消http代理
542 git config --global --unset http.proxy
543 //取消https代理
544 git config --global --unset https.proxy
545 //取消http代理
546 git config --global --unset http.proxy
547 //取消https代理
548 git config --global --unset https.proxy
549 //取消http代理
550 git config --global --unset http.proxy
551 //取消https代理
552 git config --global --unset https.proxy
553 git push origin master
554 clear
555 ssh root@123.56.107.143
556 exit
557 sl
558 sudo apt install sl
559 sudo apt-get update
560 sudo apt install sl
561 sudo apt --fix-broken
562 sudo apt --fix-broken install
563 sudo apt install sl
564 sl
565 cd /mnt
566 cd c
567 cd users
568 cd 1
569 cd desktop
570 dir
571 cd Project/
572 dir
573 git push origin master
574 git status
575 git branch
576 git log
577 exit
578 /usr/bin/hollywood
579 clear
580 exit
581 /usr/bin/hollywood
582 exit
583 /usr/bin/hollywood
584 exit
585 > yum install figlet -y
586 sudo apt install figlet
587 figlet hyx
588 figlet i love you
589 figlet I Love You
590 sudo apt install ssfire
591 sudo apt install aafire
592 sudo apt-get update
593 sudo apt install aafire
594 sudo apt install fortune-mod
595 fortuen
596 fortune
597 yes hys
598 lear
599 clear
600 sl
601 clear
602 sudo apt install cowsay
603 cowsay "huyuxuan"
604 cowsay -l
605 > wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
606 tar -zxvf cmatrix-1.2a.tar.gz
607 cd cmatrix-1.2a
608 ./configure && make && make install
609 wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
610 tar -zxvf cmatrix-1.2a.tar.gz
611 cd cmatrix-1.2a
612 ./configure && make && make install
613 cmatrix
614 tar -zxvf cmatrix-1.2a.tar.gz
615 cd cmatrix-1.2a
616 ./configure && make && make install
617 sudo apt install cmatrix
618 cmatrix
619 sudo apt install asciiquarium
620 sudo apt install perl-Curses perl-ExtUtils-MakeMaker perl-Data-Dumper
621 sudo apt-get install byobu hollywood
622 hollywood
623 clear
624 cd ../
625 cmatrix
626 sudo apt-get install libaa-bin
627 aafire
628 clear
629 sudo apt-get install bastet
630 bastet
631 sudo sudo apt-get install oneko
632 oneko
633 apt-get moo
634 toilet hello| lolcat
635 sudo apt install lolcat
636 toilet hello| lolcat
637 sudo apt install toilet
638 toilet hello| lolcat
639 ls-h
640 sl-h
641 sl
642 clear
643 sudo apt-get install libcurses-perl
644 cd /tmp
645 wget --no-check-certificate http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
646 tar -zxvf Term-Animation-2.4.tar.gz
647 cd Term-Animation-2.4/
648 perl Makefile.PL && make && make test
649 cd /tmp
650 wget --no-check-certificate http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
651 tar -zxvf asciiquarium.tar.gz
652 cd asciiquarium_1.0/ # whatever the current version you got was
653 cd asciiquarium_1.0/
654 cd asciiquarium_1.1/
655 sudo cp asciiquarium /usr/local/bin
656 asciiquarium
657 sudo apt install ninvaders
658 ninvaders
659 sudo apt-get install oneko
660 oneko
661 sudo apt install xeyes
662 sudo apt-get install npm
663 sudo apt install nodejs-legacy
664 sudo apt-get install npm
665 sudo apt install nodejs-legacy
666 hollywood
667 cd ../
668 clear
669 sudo apt install screenfetch
670 screenfetch
671 sudo apt install linuxlogo
672 linux_logo
673 cmatrix
674 aafire
675 clear
676 \
677 linux_logo
678 screenfetch
679 asciiquarium
680 cmatrix
681 hollywood
682 clear
683 aafire
684 clear
685 sl
686 sl -h
687 clear
688 exit
689 sudo apt install 2048
690 sudo apt-get update
691 sudo apt install 2048
692 sudo apt install 2048-qt
693 2048
694 sudo snap install term2048
695 1048-qt
696 2048-qt
697 sudo apt-get install bsdgames
698 backgammon
699 clear
700 wget https://raw.githubusercontent.com/mevdschee/2048.c/master/2048.c
701 gcc -o 2048 2048.c
702 ./2048
703 clear
704 ninvaders
705 clear
706 sudo apt install moonbuggy
707 sudo apt-get install moon-buggy
708 moon-buggy
709 sudo apt-get install pacman4console
710 pacman4console
711 sudo apt-get install greed
712 greed
713 atc
714 ssh sshtron.zachlatta.com
715 clear
716 sudo apt install Nethack
717 sudo apt install nethack
718 sudo apt install nethack-console
719 nethack-console
720 clear
721 exit
722 nsnake
723 sudo apt install nsnake
724 nsnake
725 nethack-console
726 clear
727 nethack-console
728 vlear
729 clear
730 exit
731 nethack-console
732 clear
733 nethack-console
734 clear
735 exit
736 nethack-console
737 clear
738 exit
739 clear
740 bastet
741 clear
742 ninvaders
743 ssh sshtron.zachlatta.com
744 clear
745 cd /mnt
746 cd e
747 cdir
748 dir
749 cd 1
750 cd Documents/
751 dir
752 tar jxvf df_47_05_linux.tar.bz2
753 df_linux/data/help/setup_gamecd df_linux
754 cd df_linux
755 ./df
756 cd
757 wget http://www.bay12games.com/dwarves/df_XX_YY_linux.tar.bz2
758 tar -xjf /path/to/df_XX_YY_linux.tar.bz2
759 tar jxvf df_XX_YY_linux.tar.bz2
760 cd /mnt
761 cd e
762 cd 1
763 cd Documents/
764 dir
765 cd df_linux
766 ./df
767 wget http://www.bay12games.com/dwarves/df_XX_YY_linux32.tar.bz2
768 cd ../
769 dir
770 tar -xjf /path/to/df_47_05_linux.tar.bz2
771 cd df_linux/
772 ./df
773 tar jxvf df_XX_YY_linux.tar.bz2
774 tar jxvf df_47_05_linux.tar.bz2
775 cd df_linux
776 cd ../
777 cd df_linux
778 ./df
779 cd ../
780 sudo echo "/usr/local/lib" >> /etc/ld.so.conf
781 su do echo "/usr/local/lib" >> /etc/ld.so.conf
782 sudo echo "/usr/local/lib" >> /etc/ld.so.conf
783 su
784 su
785 cd
786 sudo apt-get install dwarf-fortress
787 dwarf-fortress
788 sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5
789 sudo dnf install dwarffortress
790 sudo apt install dwarffortress
791 sudo apt install telnet
792 telnet
793 telnet towel.blinkenlights.nl
794 oneko
795 sudo apt install espeak
796 espeak "hello"
797 sudo apt install bb
798 bb
799 cclear
800 clear
801 sudo apt-get install npm
802 sudo apt install nodejs-legacy
803 screenfectch
804 安装使用:
805 sudo apt install screenfetch
806 screenfetch
807 linux_logo
808 for i in {1..30};do linux_logo -f -L $i;sleep 2;done
809 $ sudo apt-get install pv
810 clear
811 $ sudo apt install pv
812 $ echo "welcome to shiyanlou.com , you can learn IT by doing" | pv -qL 10
813 clear
814 for i in {1..30};do linux_logo -f -L $i;sleep 2;done
815 exit
816 for i in {1..30};do linux_logo -f -L $i;sleep 2;done
817 clear
818 exit
819 sudo apt install cal
820 cal
821 cal
822 cal -3
823 cal -y
824 htop
825 clear
826 screenfetch
827 linux_logo
828 无法生成文件 经常找不到头文件
829 clear
830 for i in {1..30};do linux_logo -f -L $i;sleep 2;done
831 clear
832 figlet hello
833 toilet hi
834 toilet hello| lolcat
835 clear
836 toilet hello| lolcat
837 clear
838 cowsay "Hello,world"
839 cowsay -f duck "我是一只小鸭子"
840 clear
841 echo "welcome to shiyanlou.com , you can learn IT by doing" | pv -qL 10
842 clear
843 bastet
844 clear
845 moon-buggy
846 greed
847 clear
848 pacman4console
849 clear
850 nsnake
851 clear
852 ninvaders
853 clear
854 nethack-console
855 clear
856 nethack-console
857 clear
858 exit
859 clear
860 nethack-console
861 clear
862 for i in {1..30};do linux_logo -f -L $i;sleep 2;done
863 clear
864 exit
865 nethack-console
866 clear
867 ccccc\
868 clear
869 exit
870 /usr/bin/hollywood
871 exit
872 /usr/bin/hollywood
873 exit
874 clear
875 cmatrix
876 cmatrix -b
877 cmatrix
878 clear
879 sl
880 clear
881 hollywood
882 clear
883 hollywood
884 clear
885 aafire
886 clear
887 asciiquarium
888 clear
889 aafire
890 exiut
891 eit
892 exit
893 python
894 pytohn3
895 python3
896 clear
897 exit
898 ssh @123.56.107.143
899 ssh root@123.56.107.143
900 exit
901 clear
902 clea
903 r
904 exit
905 sudo apt install uodate
906 sudo apt install update
907 dir
908 cal
909 cal -3
910 cal -y
911 cal -2022
912 cal 2022
913 clear
914 exit
915 clear
916 pyton3
917 python3
918 pip3 install numpy
919 pyton3
920 python3
921 exit
922
923 pip3 install torchvision
924 pip install jupyterlab
925 pip3 install jupyter
926 jupyter-lab
927 jupyter
928 jupyter notebook
929 sudo pip3 install notebook
930 sudo apt update
931 sudo apt upgrade
932 pip3 install torch
933 exit
934 dir
935 xxiao
936 xiaomiqiu_start.sh
937 xiaomiqiu
938 clear
939 exit
940 ssh root@140.82.21.5
941 exit
942 ssh root@140.82.21.5
943
944 ssh-keygen -f "/home/hyx/.ssh/known_hosts" -R "140.82.21.5"
945 ssh root@140.82.21.5
946 exit
947 clear
948 dir
949 cd /mnt
950 dir
951 cd ..
952 clear
953 su
954 sudo apt install tree
955 top
956 clear
957 ls
958 cd home
959 ls
960 cd hyx
961 ls
962 cd ..
963 dir
964 cd home/
965 di
966 dir
967 cd hyx
968 dir
969 cd ..
970 dir
971 cd mnt
972 dir
973 pwd
974 cd c
975 dir
976 cd users
977 cd 1
978 cd desktop
979 dir
980 ls
981 pwd
982 ls -h
983 1.jpg
984 file 1.jpg
985 file API5.0.json
986 less 1.jpg
987 mkdir learning_linux
988 dir
989 cd learning_linux/
990 mkdir test1
991 cd test1
992 pwd
993 vi test1.txt
994 cat test1.txt
995 cp test1.txt test1_.txt
996 cat test1_.txt
997 dir
998 cd ..
999 mkdir test1_
1000 tree
1001 mv test1/test1_.txt test1_
1002 tree
1003 clear
1004 tree
1005 mkdir test2
1006 tree
1007 cd..
1008 cd ..
1009 ls -l .*
1010 ls -l ?.???
1011 dir
1012 ls -l ???????
1013 cd desktop
1014 ls -l ?.???
1015 pwd
1016 ls -l ?.???
1017 ls -l *.???
1018 clear
1019 type
1020 type type
1021 typr ls
1022 type ls
1023 type tree
1024 type aafire
1025 type dir
1026 type sl
1027 mkdir --help
1028 cal -3
1029 cal --help
1030 apropos cd
1031 man -k
1032 man -k mkdir
1033 whatis mkdir
1034 alias = mkdir = "mkdir test3"
1035 alias mkdirss = "mkdir test3"
1036 alias mkdirss="mkdir test3"
1037 cd learning_linux/
1038 dir
1039 mkdirss
1040 dir
1041 cd test3
1042 dir
1043 mkdirss
1044 dir
1045 alias
1046 unalias mkdirss
1047 alias
1048 clear
1049 echo hello
1050 echo hello world
1051 echo hello world linux
1052 cd ..
1053 cd test1
1054 echo hello > test2.yxt
1055 dir
1056 cat test2.yxt
1057 echo hello world linux >> test2.yxt
1058 cat test2.yxt
1059 cat < test2.yxt
1060 clear
1061 ls -l |sort
1062 cd ..
1063 clear
1064 ls
1065 ls -l |sort
1066 wc
1067 ls -l |wc
1068 ls -l |grep
1069 cd test1
1070 ls -l |grep test1.txt
1071 > test3.txt
1072 dir
1073 cat test3.txt
1074 clear
1075 echo $(1+2+9)
1076 echo $((1+2+9))
1077 echo $((1+2+9+$((10+57))))
1078 echo hello $((1057))
1079 cd ..
1080 cd test2
1081 dir
1082 >{01..10}.txt
1083 dir
1084 touch text{01..10}.txt
1085 dir
1086 touch {00..05}.txt
1087 dir
1088 rm {01..03}.txt
1089 dir
1090 xxx=hello
1091 echo xxx
1092 echo $xx
1093 echo $xxx
1094 whatis printenv
1095 echo "hdfjsl dhfjls "
1096 echo $(ls -l)
1097 clear
1098 history
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ history 10#
-bash: history: 10#: numeric argument required
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ history 10
1091 echo xxx
1092 echo $xx
1093 echo $xxx
1094 whatis printenv
1095 echo "hdfjsl dhfjls "
1096 echo $(ls -l)
1097 clear
1098 history
1099 history 10#
1100 history 10
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ history 5
1097 clear
1098 history
1099 history 10#
1100 history 10
1101 history 5
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ history -c
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$ history
1 history
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux/test2$
user or root
hyx@hyx-computer:/mnt/c/users/1/desktop$ cd learning_linux/
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -l
total 0
drwxrwxrwx 1 hyx hyx 4096 Jan 21 17:24 test1
drwxrwxrwx 1 hyx hyx 4096 Jan 21 09:46 test1_
drwxrwxrwx 1 hyx hyx 4096 Jan 21 17:36 test2
drwxrwxrwx 1 hyx hyx 4096 Jan 21 11:44 test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ chmod 777 test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -l
total 0
drwxrwxrwx 1 hyx hyx 4096 Jan 21 17:24 test1
drwxrwxrwx 1 hyx hyx 4096 Jan 21 09:46 test1_
drwxrwxrwx 1 hyx hyx 4096 Jan 21 17:36 test2
drwxrwxrwx 1 hyx hyx 4096 Jan 21 11:44 test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ chmod 766 test1
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -l
total 0
drwxrwxrwx 1 hyx hyx 4096 Jan 21 17:24 test1
drwxrwxrwx 1 hyx hyx 4096 Jan 21 09:46 test1_
drwxrwxrwx 1 hyx hyx 4096 Jan 21 17:36 test2
drwxrwxrwx 1 hyx hyx 4096 Jan 21 11:44 test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ su
Password:
su: Authentication failure
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ su
Password:
su: Authentication failure
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ passwd
Changing password for hyx.
Current password:
New password:
Retype new password:
Password unchanged
New password:
Retype new password:
passwd: password updated successfully
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ sudo passwd root
New password:
Retype new password:
passwd: password updated successfully
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ su
Password:
root@hyx-computer:/mnt/c/users/1/desktop/learning_linux# hyx
Command 'hyx' not found, did you mean:
command 'hy3' from deb python3-hy (0.18.0-1)
command 'hy' from deb python3-hy (0.18.0-1)
command 'nyx' from deb nyx (2.1.0-2)
command 'lyx' from deb lyx (2.3.4.2-2)
command 'hyc' from deb python3-hy (0.18.0-1)
command 'hex' from deb basez (1.6.2-1)
Try: apt install <deb name>
root@hyx-computer:/mnt/c/users/1/desktop/learning_linux# exit
exit
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cat passwd
cat: passwd: No such file or directory
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:100:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
systemd-timesync:x:102:104:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:103:106::/nonexistent:/usr/sbin/nologin
syslog:x:104:110::/home/syslog:/usr/sbin/nologin
_apt:x:105:65534::/nonexistent:/usr/sbin/nologin
tss:x:106:111:TPM software stack,,,:/var/lib/tpm:/bin/false
uuidd:x:107:112::/run/uuidd:/usr/sbin/nologin
tcpdump:x:108:113::/nonexistent:/usr/sbin/nologin
sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
landscape:x:110:115::/var/lib/landscape:/usr/sbin/nologin
pollinate:x:111:1::/var/cache/pollinate:/bin/false
hyx:x:1000:1000:,,,:/home/hyx:/bin/bash
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ getnet passwd
Command 'getnet' not found, did you mean:
command 'getent' from deb libc-bin (2.31-0ubuntu9.2)
Try: sudo apt install <deb name>
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ getent passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:100:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
systemd-timesync:x:102:104:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:103:106::/nonexistent:/usr/sbin/nologin
syslog:x:104:110::/home/syslog:/usr/sbin/nologin
_apt:x:105:65534::/nonexistent:/usr/sbin/nologin
tss:x:106:111:TPM software stack,,,:/var/lib/tpm:/bin/false
uuidd:x:107:112::/run/uuidd:/usr/sbin/nologin
tcpdump:x:108:113::/nonexistent:/usr/sbin/nologin
sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
landscape:x:110:115::/var/lib/landscape:/usr/sbin/nologin
pollinate:x:111:1::/var/cache/pollinate:/bin/false
hyx:x:1000:1000:,,,:/home/hyx:/bin/bash
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ compgen -u
root
daemon
bin
sys
sync
games
man
lp
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
systemd-network
systemd-resolve
systemd-timesync
messagebus
syslog
_apt
tss
uuidd
tcpdump
sshd
landscape
pollinate
hyx
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
processing
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ps
PID TTY TIME CMD
11 tty1 00:00:00 bash
378 tty1 00:00:00 ps
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ps -x
PID TTY STAT TIME COMMAND
11 tty1 S 0:00 -bash
379 tty1 R 0:00 ps -x
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ top
top - 22:24:51 up 13:01, 0 users, load average: 0.52, 0.58, 0.59
Tasks: 4 total, 1 running, 3 sleeping, 0 stopped, 0 zombie
%Cpu(s): 5.5 us, 3.3 sy, 0.0 ni, 90.9 id, 0.0 wa, 0.4 hi, 0.0 si, 0.0 st
MiB Mem : 16212.5 total, 7973.5 free, 8015.0 used, 224.0 buff/cache
MiB Swap: 23040.0 total, 22754.9 free, 285.1 used. 8066.9 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 8944 332 288 S 0.0 0.0 0:00.07 init
10 root 20 0 8944 228 184 S 0.0 0.0 0:00.00 init
11 hyx 20 0 18716 4152 4040 S 0.0 0.0 0:00.68 bash
380 hyx 20 0 18916 2132 1528 R 0.0 0.0 0:00.01 top
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ htop
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ps ux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
hyx 11 0.0 0.0 18716 4152 tty1 S 09:23 0:00 -bash
hyx 382 0.0 0.0 18664 1892 tty1 R 22:25 0:00 ps ux
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ htop
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ps ux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
hyx 11 0.0 0.0 18716 4152 tty1 S 09:23 0:00 -bash
hyx 382 0.0 0.0 18664 1892 tty1 R 22:25 0:00 ps ux
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ps ux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
hyx 11 0.0 0.0 18716 4152 tty1 S 09:23 0:00 -bash
hyx 383 0.0 0.0 18664 1892 tty1 R 22:26 0:00 ps ux
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ kill 383
-bash: kill: (383) - No such process
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
poweroff
reboot
alias again
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$ ls -a
. .. test1 test1_ test2 test3
hyx@hyx-computer:/mnt/c/users/1/desktop/learning_linux$
finding
hyx@hyx-computer:/mnt/c/users/1/desktop$ find *.txt
find: ‘*.txt’: No such file or directory
hyx@hyx-computer:/mnt/c/users/1/desktop$ whatis find
find (1) - search for files in a directory hierarchy
hyx@hyx-computer:/mnt/c/users/1/desktop$ find --help
Usage: find [-H] [-L] [-P] [-Olevel] [-D debugopts] [path...] [expression]
default path is the current directory; default expression is -print
expression may consist of: operators, options, tests, and actions:
operators (decreasing precedence; -and is implicit where no others are given):
( EXPR ) ! EXPR -not EXPR EXPR1 -a EXPR2 EXPR1 -and EXPR2
EXPR1 -o EXPR2 EXPR1 -or EXPR2 EXPR1 , EXPR2
positional options (always true): -daystart -follow -regextype
normal options (always true, specified before other expressions):
-depth --help -maxdepth LEVELS -mindepth LEVELS -mount -noleaf
--version -xdev -ignore_readdir_race -noignore_readdir_race
tests (N can be +N or -N or N): -amin N -anewer FILE -atime N -cmin N
-cnewer FILE -ctime N -empty -false -fstype TYPE -gid N -group NAME
-ilname PATTERN -iname PATTERN -inum N -iwholename PATTERN -iregex PATTERN
-links N -lname PATTERN -mmin N -mtime N -name PATTERN -newer FILE
-nouser -nogroup -path PATTERN -perm [-/]MODE -regex PATTERN
-readable -writable -executable
-wholename PATTERN -size N[bcwkMG] -true -type [bcdpflsD] -uid N
-used N -user NAME -xtype [bcdpfls] -context CONTEXT
actions: -delete -print0 -printf FORMAT -fprintf FILE FORMAT -print
-fprint0 FILE -fprint FILE -ls -fls FILE -prune -quit
-exec COMMAND ; -exec COMMAND {} + -ok COMMAND ;
-execdir COMMAND ; -execdir COMMAND {} + -okdir COMMAND ;
Valid arguments for -D:
exec, opt, rates, search, stat, time, tree, all, help
Use '-D help' for a description of the options, or see find(1)
Please see also the documentation at http://www.gnu.org/software/findutils/.
You can report (and track progress on fixing) bugs in the "find"
program via the GNU findutils bug-reporting page at
https://savannah.gnu.org/bugs/?group=findutils or, if
you have no web access, by sending email to <bug-findutils@gnu.org>.
hyx@hyx-computer:/mnt/c/users/1/desktop$ find 1.jpg
1.jpg
hyx@hyx-computer:/mnt/c/users/1/desktop$
hyx@hyx-computer:/mnt/c/users/1/desktop$ find . -name "*.txt"
./learning_linux/test1/test1.txt
./learning_linux/test1/test3.txt
./learning_linux/test1_/test1_.txt
./learning_linux/test2/00.txt
./learning_linux/test2/04.txt
./learning_linux/test2/05.txt
./learning_linux/test2/text01.txt
./learning_linux/test2/text02.txt
./learning_linux/test2/text03.txt
./learning_linux/test2/text04.txt
./learning_linux/test2/text05.txt
./learning_linux/test2/text06.txt
./learning_linux/test2/text07.txt
./learning_linux/test2/text08.txt
./learning_linux/test2/text09.txt
./learning_linux/test2/text10.txt
./ShadowsocksR-win-4.9.0/chn_ip.txt
hyx@hyx-computer:/mnt/c/users/1/desktop$ find . -name "*.lnk"
./GitHub Desktop.lnk
./Google Chrome.lnk
./msedge.exe.lnk
./Notepad++.lnk
./QQ.exe.lnk
./Visual Studio Code.lnk
./WPS Office.lnk
./wxFormBuilder.lnk
hyx@hyx-computer:/mnt/c/users/1/desktop$