Linux操作系统练习

张开发
2026/4/19 1:44:18 15 分钟阅读

分享文章

Linux操作系统练习
历史命令1 ifconfig2 ls3 hollywood4 ifconfig5 sudo apt-get install hollywood6 ls7 sl8 oneko9 hollywood10 oneko11 sl12 ls13 cd /14 cd usr15 ls16 cd ..17 ls18 ifconfig19 su - root20 cat /etc/redhat-release21 uname -a22 neihe23 uname -a24 cat /etc/redhat-release25 ifconfig26 touch a27 ls28 cd29 cd usr30 cd /usr31 ls32 cat /etc/redhat-release33 uname -a34 touch a35 cd ..36 touch a37 home38 host39 touch a40 rm a41 mkdir a42 rmdir a43 ls44 mkdir mycode45 ls46 cd mycode47 touch a.py48 ls49 gedit a.py50 ls51 cd mycode52 ls53 gedit a.py54 python a.py55 vim 11.txt56 touch b57 ls58 rm a59 ls60 rm b61 ls62 mkdir a63 ls64 rkdir a65 rmdir a66 ls67 cd /usr68 ls69 cd ..70 touch a71 rm host72 rm home73 ls74 touch a75 cd ~76 man77 man man78 mkdir Dir1 Dir3 Dir4 Dir579 ls80 mkdir -p Dir2/Dir22/Dir222/Dir222281 ls82 cd Dir283 ls84 cd Dir2285 ls86 cd Dir22287 ls88 cd Dir222289 ls90 pwd91 d s92 cd93 ls -l94 mkdir -m 700 Dir695 ls96 ls -l97 cd /98 cd home99 cd ~100 pwd101 cd /102 cd home103 cd cfhhk104 ls ..105 ls ../..106 ls ../../..107 ls -a108 ls -i109 ls -Sl110 ls -Sl /etc111 ls .112 ls ../113 ls ../cfhhk114 cd /Dir115 cd /Dir1116 cd117 cd Dir1118 cd /home/cfhhk119 cd /home/cfhhk/Dir1120 cd ./Dir1121 cd122 cd ./Dir1123 cd -124 cd ..125 cd .126 cd ..127 cd -128 cd cfhhk129 cd ../..130 cd -131 ls132 touch a133 ls134 mv a b135 ls136 mv b Dir1137 ls138 ls Dir1139 ll140 mv Dir5 Dir1141 ls Dir1142 ls143 cd Dir1144 touch a b c d145 ls146 cd147 mv -f Dir1/* .148 ls149 mv Dir1 Dir3/Dir11150 ls151 ls Dir3152 mv Dir3 ~/Dir1153 ls154 mkdir Dir3155 ls156 ls Dir157 ls Dir1158 rmdir -p Dir1/Dir11/159 ls160 rmdir Dir2 Dir3 Dir4 Dir5 Dir6161 ls162 rm -rf Dir2163 ls164 rm a165 ls166 rm -rf b c d167 ls168 ls169 mv mycode170 cd mycode171 ls172 cd a.py173 ls174 cd175 touch File.txt176 ls177 cd 公共178 ls179 cd180 ls -l181 touch File{1.5}.txt182 ls183 ls -l184 touch File{1..5}.txt185 ls -l186 ll187 touch -d 2023-03-21 21:33 File1.txt188 ll189 rm File{1.5}.txt190 ls191 ll192 gedit File1.txt193 vim 111.txt194 ls195 vim 111.txt196 vim 21.c197 cat 111.txt198 cat 21.c199 cat -n 21.c200 cat -n 111.txt201 c 21.c202 ls203 ll204 cat 111.txt205 cat 11.txt206 rm 111.txt207 rm 11.txt208 ll209 rm File{1..5}.txt210 ll211 vim 300.txt212 cat -n 300.txt213 rm 300.txt214 ll215 rm File.txt216 ll217 vim 21.c218 vim 1.txt219 more 1.txt220 less 1.txt221 head 1.txt222 tail 1.txt223 cat 1.txt224 more 1.txt225 less 1.txt226 head -100 1.txt227 head -10 1.txt228 tail -20 1.txt229 head -20 1.txt230 mkdir 1/2/3/4/5231 mkdir -p 1/2/3/4/5232 ll233 cd 1234 ll235 cd 2236 ls237 rm -rf 1238 cd239 rm -rf 1240 ll241 sort 1.txt242 cat 1.txt243 sort -n 1.txt244 sort -nk 1.txt245 vim sort.txt246 cat sort.txt247 sort -kn 2 -t:sort.txt248 sort -nkr 3 -t: sort.txt249 ll250 cd mycode251 python a.py252 cd253 python a.py254 cp /etc/passwd ~255 ls256 cut -d : -f1 ~/passwd257 cat passwd258 cut -d : -f1 ~/passwd259 cut -d: -f1 ~/passwd260 cut -d: -f1,7 ~/passwd261 cut -c1-5 ~/passwd262 cut -d : -f1 ~/passwd | wc -| cut -d : -f1 ~/passwd | wc -1263 cut -d : -f1 ~/passwd | wc -| cut -d : -f1 /etc/passwd | wc -| cd264 cp C:\Users\All For One\Desktop\rhel_test1265 cp /Users/All For One/Desktop/rhel_test1/-share/666.txt266 cp /Desktop/rhel_test1/-share/666.txt ~267 cp /rhel_test1/share/666.txt ~268 ls mnt/hgfs269 ls /mnt/hgfs/270 vim 1.txt271 ll272 cat 1.txt273 ll274 cat 21.c275 cat passwd276 ls277 gedit 11.txt278 ls279 cd 11.txt280 gedit 11.txt281 ls /mnt/hgfs/282 ls283 vim a.txt284 cat a.txt285 more a.txt286 less a.txt287 tail a.txt288 head a.txt289 ll290 cat sort.txt291 rm *.txt292 ll293 touch a.txt294 mkdir dir295 ls296 ll297 chmod 0755 a.txt298 chmod 0777 dir299 ll300 cd dir/301 touch 1302 ls303 rm 1304 ls305 touch 1.txt 2.txt306 chmod -R ax dir307 cd308 chmod -R ax dir309 cd dir310 ll311 cd312 ll313 cat a.txt314 cd /mnt/hgfs/redhat/315 ls316 cat a.txt317 cat b.txt318 cd319 ll320 touch 1.txt321 ll322 ls /etc/passwd323 pwd324 cd passwd325 cat passwd326 cd /327 ls328 ll329 cd etc330 ls331 cd passad332 cd333 ll334 cd dir335 ll336 sudo chown root 1.txt337 ll338 sudo chown -R root dir339 cd340 sudo chown -R root dir341 cd dir342 ll343 cd344 chgrp -R root dir345 sudo chgrp -R root dir346 cd dir347 ll348 cd349 cat passwd350 sudo chown -R lp dir351 cd dir352 ll353 cd354 touch dir1355 cd dir1356 ll357 rm dir1358 mkdir dir1359 cd dir1360 touch a.txt b.txt361 ll362 cd363 sudo chown -R root dir1364 cd dir1365 ll366 cd367 ll368 cp passwd /mnt/hgfs/redhat/369 ln File1.cfg linkFiel1.cfg370 mkdir File1.cfg371 ln File1.cfg linkFile1.cfg372 mkdir test373 cd test374 touch a.txt b.txt c.txt375 ls376 ll377 sudo chown root a.txt378 ll379 sudo chgrp lp b.txt380 ls381 ll382 sudo chown -R bin c.txt383 ll384 sudo chown bin:bin c.txt385 ll386 cd387 ll388 mkdir abc389 cd abc390 cd391 cp test/a.txt b.txt c.txt abc392 cp test/a.txt abc393 cp test/b.txt abc394 cp test/c.txt abc395 cd abc396 ll397 cd398 cd abc399 rm *.txt400 ll401 cd402 cd test/403 cp -a a.txt b.txt c.txt abc404 cd405 ll406 cd test407 ll408 cp -a a.txt b.txt c.txt abc409 cp -a a.txt abc410 cp -a b.txt abc411 cp -a c.txt abc412 cd abc413 cd414 cd abc415 ll416 cd test417 cd ../test418 cp -a a.txt abc419 cd ../abc420 ll421 cd ../test422 cp a.txt abc423 cd ../abc424 ll425 cd ../test426 cp -a a.txt ../abc427 cd ../abc428 ll429 cd ../test/430 cp -a b.txt ../abc431 cp -a c.txt ../abc432 cd ../abc433 ll434 cd ../test435 ll436 rm abc437 ll438 cd ../abc439 ll440 sudo chown -R root ./abc441 cd442 sudo chown -R root ./abc443 sudo chgrp -R bin ./abc444 cd abc445 ll446 ln a.txt linka.txt447 ll448 sudo ln a.txt linka.txt449 ll450 sudo ln -s b.txt linkb.txt451 sudo ln c.txt linkc.txt452 ll453 vi a.txt454 ll455 cat 21.c456 ll457 tar -cvf 1.tar 1.txt 21.c a.txt458 ll459 tar -xvf 1.tar460 ll461 rm 1.tar462 ll463 ls464 ll465 tar -cvf 1.tar 1.txt 21.c a.txt466 rm 1.txt 21.c a.txt467 ll468 tar -xvf 1.tar469 ll470 cd a.txt471 cat a.txt472 q473 zip 1.tar 1.tar.zip474 ll475 zip 1.tar.zip 1.tar476 ll477 rm 1.txt 21.c a.txt478 ll479 rm 1.tar480 ll481 unzip 1.tar.zip482 ll483 tar -xvf 1.tar484 ll485 xz -z 1.tar486 ll487 cd abc488 ll489 cd ../490 cd dir491 ll492 cd dir1493 cd ../494 cd dir1495 ll496 cd497 ll498 tar -cvf abc dir dir1499 tar abc.tar dir.tar dir1.tar500 tar 2.tar abc dir dir1501 tar -cvf abc dir dir1502 tar -cvf 2.tar abc dir dir1503 ll504 xz -z 2.tar505 ll506 xz -d 2.tar.xz507 ll508 vim 21.c509 ls -S510 ll -S511 vim passwd512 rm *zip513 rm *tar514 ll515 rm *xz516 ll517 ll /518 cat tmp519 cd /520 cat tmp521 cd tmp522 ll523 ll /mnt/hgfs524 cd525 ll /mnt/hgfs526 cd /mnt/hgfs/redhat/527 ll528 tar -zxvf nginx-0.1.0.tar.gz -C ~529 cd530 ll531 pwd532 cd nginx-0.1.0/533 ll534 rm auto535 rm LICENSE536 rm README537 cd538 tar -zcvf linux.tar.gz nginx-0.1.0/539 ll540 cd nginx-0.1.0/541 ll542 cd html/543 ll544 cd ..545 cd auto546 ll547 cat cc548 cd549 ll550 rm nginx-0.1.0/551 rm -rf nginx-0.1.0/552 ll553 rm *tar.gz554 ll555 history556 history mylog.txt

更多文章