linux学习笔记一
Posted hhh江月
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux学习笔记一相关的知识,希望对你有一定的参考价值。
linux学习笔记一
文章目录
这个是我在学习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 directo以上是关于linux学习笔记一的主要内容,如果未能解决你的问题,请参考以下文章