254 sudo usermod -aG sudo mekan 255 su - mekan 256 ls 257 cd ../ 258 ls 259 ~/.pgadmin/pgadmin4.db 260 ls ~/.pgadmin/pgadmin4.db 261 ls ~/.config/pgadmin/pgadmin4.db 262 ls /home/mekan/.pgadmin/pgadmin4.db 263 sudo apt-get remove --purge pgadmin4 pgadmin4-web pgadmin4-desktop 264 sudo apt-get autoremove 265 sudo apt-get autoclean 266 rm -rf ~/.pgadmin 267 rm -rf ~/.config/pgadmin 268 sudo rm -rf /var/lib/pgadmin 269 sudo rm -rf /etc/pgadmin 270 curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo tee /etc/apt/trusted.gpg.d/pgadmin.asc 271 sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && sudo apt update' 272 sudo apt install pgadmin4-web 273 sudo /usr/pgadmin4/bin/setup-web.sh 274 /etc/postgresql/14/main/pg_hba.conf 275 cd etc 276 ls 277 cd postgresql 278 ls 279 cd 12 280 ls 281 /etc/postgresql/14/main/pg_hba.conf 282 /etc/postgresql/12/main/pg_hba.conf 283 /main/pg_hba.conf 284 cd main 285 ls 286 nano pg_hba.conf 287 sudo systemctl restart postgresql 288 sudo -i -u postgres 289 mkdir ssl 290 ls 291 openssl req -nodes -new -x509 -keyout ssl/key.pem -out ssl/cert.pem -days 365 292 ls 293 cd ssl 294 ls 295 cd ../ 296 ls 297 cd telegram-miniapp-alias-auth 298 ls 299 nano server.js 300 ls 301 nano sevrer.js 302 ls 303 nano server.js 304 ls 305 rm server.js 306 nano server.js 307 ls 308 nano server.js 309 ls 310 nano server.js 311 npm run 312 npm start 313 sudo ls /etc/ssl/certs/ 314 sudo grep -i 'SSLCertificateFile' /etc/apache2/sites-enabled/* 315 sudo a2enmod ssl 316 sudo a2ensite default-ssl 317 sudo systemctl restart apache2 318 sudo ufw allow 443/tcp 319 npm start 320 sudo chown -R www-data:www-data /var/www/public_html 321 sudo chmod -R 755 /var/www/public_html 322 cd 323 sudo chown -R www-data:www-data /var/www/public_html 324 sudo chmod -R 755 /var/www/public_htmlls 325 ls 326 cd ../ 327 lw 328 ls 329 sudo chown -R www-data:www-data /var/www/public_html 330 cd var 331 la 332 cd www 333 ls 334 335 336 cd 337 sudo nano /etc/apache2/sites-available/mekanxsari.ru-le-ssl.conf 338 sudo a2enmod ssl 339 sudo a2ensite mekanxsari.ru-le-ssl.conf 340 sudo systemctl reload apache2 341 sudo apache2ctl configtest 342 grep -r "DocumentRoot /var/www/public_html" /etc/apache2/sites-enabled/ 343 cat /etc/apache2/sites-enabled/default-ssl.conf 344 nano /etc/apache2/sites-enabled/default-ssl.conf 345 grep -ri "documentroot" /etc/apache2/sites-enabled/ 346 DocumentRoot /var/www/public_html 347 sudo a2dissite 000-default.conf 348 sudo a2dissite test.conf 349 sudo systemctl reload apache2 350 sudo nano /etc/apache2/sites-available/000-default.conf 351 ls -l /etc/apache2/sites-enabled/ 352 grep -i "documentroot" /etc/apache2/sites-available/*.conf 353 sudo nano 354 sudo nano /etc/apache2/sites-available/mekanxsari.ru.conf 355 sudo systemctl reload apache2 356 apache2ctl configtest 357 grep -i "sslcertificate" /etc/apache2/sites-enabled/*.conf 358 sudo mv /etc/ssl/certs/certificate.key /etc/ssl/private/certificate.key 359 sudo chmod 600 /etc/ssl/private/certificate.key 360 sudo nano /etc/apache2/sites-available/mekanxsari.ru-le-ssl.conf 361 sudo apache2ctl configtest 362 sudo mv /etc/ssl/certs/certificate.key /etc/ssl/private/certificate.key 363 cd /etc/ssl/private/ 364 ls 365 sudo apache2ctl configtest 366 sudo nano /etc/apache2/sites-available/mekanxsari.ru-le-ssl.conf 367 sudo apache2ctl configtest 368 sudo systemctl reload apache2 369 openssl x509 -noout -subject -issuer -dates -in /etc/ssl/certs/certificate.crt 370 sudo cat /etc/apache2/sites-available/mekanxsari.ru-le-ssl.conf 371 sudo apt update 372 sudo apt install certbot python3-certbot-apache -y 373 sudo nano /etc/apache2/sites-available/mekanxsari.ru.conf 374 sudo a2ensite mekanxsari.ru.conf 375 sudo systemctl reload apache2 376 sudo certbot --apache -d mekanxsari.ru -d www.mekanxsari.ru 377 sudo systemctl reload apache2 378 cd 379 cd ../var/www/html 380 ls 381 cd sevrer 382 cd server 383 ls 384 npm start 385 npm install 386 npm start 387 ls 388 cd ../ 389 ls 390 rm telegram-miniapp-alias-auth 391 rm telegram-miniapp-alias-auth.zip 392 ls 393 rm -rf telegram-miniapp-alias-auth/ 394 ls 395 zip frontend 396 sudo apt install zip 397 sudo zip frontend 398 zip -r frontend.zip frontend 399 ls 400 rm frontend.zip 401 sudo rm -rf __MACOSX 402 ls 403 git status 404 git pull 405 git branch 406 ls 407 git status 408 git pull 409 git commit 410 git add 411 git commit -a 412 git pull 413 git reset --hard 414 git pull 415 ls 416 rm -rf server 417 ls 418 git status 419 ls 420 cd api 421 ls 422 cd ../ 423 ls 424 git fetch --all 425 reset --hard origin/main 426 git reset --hard origin/main 427 ls 428 git status 429 exit 430 git pull 431 ls 432 git pull 433 ls 434 cd api 435 ls 436 npm start 437 ls 438 npm install express 439 npm install cors body-parser jsonwebtoken 440 npm start 441 npm install 442 ls 443 rm -rf node_modules 444 ls 445 cd ../ 446 ls 447 git pull 448 git reset --hard 449 git fetch origin && git reset --hard origin/main && git clean -fd 450 git pull 451 ls 452 cd api 453 ls 454 npm install 455 npm start 456 ls 457 cd ../ 458 ls 459 git pull 460 cd api 461 npm start 462 cd ../ 463 cd api 464 ls 465 rm 0rf node_modules 466 rm -rf node_modules 467 cd ../ 468 git fetch origin && git reset --hard origin/main && git clean -fd 469 git pull 470 cd api 471 ls 472 npm install 473 npm start 474 cd ../ 475 ls 476 cd api 477 ls 478 sudo rm -rf node_modules 479 cd ../ 480 git fetch origin && git reset --hard origin/main && git clean -fd 481 git pull 482 cd api 483 npm install 484 npm start 485 cd ../ 486 ls 487 git pull 488 cd api 489 npm start 490 git pull 491 cd ../api 492 npm start 493 git pull 494 npm start 495 git pull 496 npm start 497 git pull 498 npm start 499 git pull 500 npm start 501 git pull 502 npm start 503 git pull 504 npm start 505 git pull 506 npm start 507 git pull 508 cd ../ 509 git fetch origin && git reset --hard origin/main && git clean -fd 510 git status 511 git pull 512 cd api 513 npm start 514 cd ../ 515 ls 516 ls -a 517 CD F 518 cd f 519 nano .htaccess 520 ls 521 cd ..\ 522 cd .. 523 ls 524 rm -rf f 525 ls 526 git pull 527 ls 528 git pull 529 git diff 530 git pull 531 cd api 532 npm start 533 git pull 534 npm start 535 git pull 536 npm start 537 git pull 538 npm start 539 git pull 540 npm start 541 git pull 542 npm start 543 git pull 544 npm start 545 git pull 546 npm start 547 git pull 548 npm start 549 git pull 550 npm start 551 git pull 552 npm start 553 git pull 554 npm start 555 git pull 556 npm start 557 git pull 558 npm start 559 git pull 560 npm start 561 git pull 562 npm start 563 rm -rf node_modules 564 l 565 git pull 566 npm install 567 npm start 568 git pull 569 cd api 570 npm start 571 cd routes 572 ls 573 nano index.js 574 ls 575 cd ../ 576 npm start 577 cd routes 578 ls 579 nano index.js 580 cd ../ 581 npm start 582 cd routes 583 nano capculas.js 584 cd ../ 585 npm start 586 git pull 587 npm start 588 cd routes 589 ls 590 cd ../ 591 git status 592 git add . 593 git status 594 git add api/routes/outfits.js 595 git pull 596 ls 597 cd api 598 ls 599 cd routes 600 ls 601 git fetch 602 git pull 603 git reset --hard 604 git pull 605 ls 606 cd ../../ 607 cd api 608 npm start 609 git pull 610 npm start 611 git pull 612 npm start 613 git pull 614 npm start 615 git pull 616 npm start 617 git pull 618 npm start 619 git pull 620 npm start 621 git pull 622 npm start 623 cd routes 624 ls 625 nano capcula.js 626 cd ../ 627 git pull 628 npm start 629 git pull 630 npm start 631 git pull 632 npm start 633 git pull 634 npm start 635 git pull 636 npm start 637 cd ../ 638 git pull 639 cd api 640 npm start 641 cd ../ 642 ls 643 nano .htaccess 644 ls 645 cd api 646 npm start 647 git pull 648 npm start 649 git pull 650 npm start 651 git pull 652 npm start 653 git pull 654 npm start 655 git pyll 656 git pull 657 npm start 658 git pull 659 npm start 660 git pull 661 npm start 662 git pull 663 npm start 664 cd ../ 665 ls 666 npm install -g pm2 667 ls 668 cd api 669 pm2 start app.js 670 cd ../ 671 pm2 start app.js 672 ls 673 cd api 674 pm2 start server.js 675 sudo a2enmod proxy 676 sudo a2enmod proxy_http 677 sudo systemctl restart apache2 678 pm2 start server.js 679 pm2 status 680 cd ../ 681 ls 682 cd application 683 npm run dev 684 sudo nano /etc/apache2/sites-available/mekanxsari.ru-le-ssl.conf 685 sudo systemctl restart apache2 686 pm2 status 687 git pull 688 pm2 status 689 git pull 690 cd ../ 691 cd html 692 git pull 693 nano index.html 694 git pull 695 git restore . 696 701 clear 702 git pull 703 nanon index.html 704 nano index.html 705 pm2 status 706 pm2 707 pm2 -h 708 ls 709 cd api 710 ls 711 pm2 start app.js --watch 712 pm2 start server.js --watch 713 pm2 status 714 pm2 stop server 715 pm2 start server.js --watch 716 pm2 status 717 cd ../ 718 git pull 719 ls 720 clear 721 git pull 722 cd ../../ 723 ls 724 cd var/www/html 725 git pull 726 cd ../../ 727 ls 728 cd var/www/html/ 729 ls 730 git branch 731 git pull 732 git branch 733 git checkout server 734 ls 735 git branch 736 git fetch --prune 737 git branch 738 git checkout main 739 git branch -d server 740 git pull -p 741 git fetch --all 742 git branch -r 743 git branch -a 744 ls 745 git branch 746 git checkout -b main origin/HEAD 747 git chekout -b integration-testing origin/integration-testing 748 git checkout -b integration-testing origin/integration-testing 749 git checkout -b integration-testing2 origin/integration-testing2 750 git branch 751 cd 752 ls 753 git checkout main 754 cd var/www/html 755 ls 756 cd ../ 757 ls 758 cd var/www/html 759 git branch 760 git checkout -b integration-testing2 origin/integration-testing2 761 ls 762 git checkout -b server origin/server 763 git branch 764 git checkout -b unit-testing origin/unit-testing 765 git branch 766 git checkout server 767 ls 768 pm2 status 769 pm2 stop server 770 ls 771 cd api 772 ls 773 pm2 start server.js --name styleapp-api 774 ls 775 git branch 776 cd ../../ 777 ls 778 cd var/www/html 779 ls 780 git pull 781 pm2 status 782 git pull 783 pm2 stop styleapp-api 784 cd api 785 ls 786 pm2 start styleapp-api --watch 787 cd ../ 788 git pull 789 pm2 stop styleapp-api 790 pm2 start styleapp-api --watch 791 git pull 792 cd ../../ 793 ls 794 cd var/www/html 795 ls 796 git pull 797 pm2 status 798 pm2 start styleapp-api --watch 799 pm2 status 800 git pull 801 cd api 802 npm install 803 npm install multer 804 cd ../ 805 pm2 start styleapp-api --watch 806 pm2 status 807 cd ../../ 808 ls 809 cd var/www/html 810 pm2 status 811 pm2 help 812 pm2 examples 813 pm2 remove 0 814 git pull 815 pm2 status 816 git pull 817 pm2 start styleapp-api --watch 818 pm2 stop styleapp-api 819 pm2 start styleapp-api --watch 820 pm2 status 821 pm2 stop styleapp-api 822 cd api 823 npm run 824 npm start 825 cd ../ 826 git pull 827 pm2 start styleapp-api --watch 828 git pull 829 pm2 stop styleapp-api 830 cd api 831 npm start 832 cd ../ 833 git pull 834 cd api 835 npm start 836 git pull 837 npm start 838 git pull 839 npm start 840 git pull 841 npm start 842 git pull 843 npm start 844 git pull 845 npm start 846 git pull 847 clear 848 npm start 849 git pull 850 npm start 851 git pull 852 npm start 853 git pull 854 npm start 855 git pull 856 npm start 857 git pull 858 npm start 859 git pull 860 npm start 861 git pull 862 npm start 863 git pull 864 npm start 865 cd ../../ 866 cd var/www/html 867 git pull 868 pm2 start styleapp-api --watch 869 git pull 870 ls 871 sudo chown -R www-data:www-data /var/www/html/stylist 872 sudo chmod -R 755 /var/www/html/stylist 873 git pull 874 tree 875 apt install tree 876 tree 877 tree /F 878 tree help 879 tree -l 2 880 tree -L 2 881 git pull 882 git checkout -- stylist/index.html 883 git pull 884 nano /etc/apache2/apache2.conf 885 sudo a2enmod rewrite 886 sudo systemctl restart apache2 887 sudo chmod -R 755 /var/www/html/stylist 888 sudo chown -R www-data:www-data /var/www/html/stylist 889 nano /etc/apache2/sites-available/000-default.conf 890 nano /etc/apache2/apache2.conf 891 sudo systemctl restart apache2 892 sudo a2enmod rewrite 893 git pull 894 git checkout -- stylist/index.html 895 git pull 896 git checkout -- stylist/index.htm 897 git checkout -- stylist/index.html 898 git pull 899 git checkout -- stylist/index.html 900 git pull 901 pm2 status 902 cd stylist-dashboard 903 npm install 904 npm run dev 905 cd ../ 906 git checkout -- stylist/index.html 907 git pull 908 sudo ufw allow 5173 909 git checkout -- stylist/index.html 910 git pull 911 cd stylist-dashboard 912 npm run dev 913 git pull 914 npm run dev 915 git pull 916 npm run dev 917 git pull 918 npm run dev 919 sudo chown -R www-data:www-data /var/www/html/app-images 920 sudo chmod -R 755 /var/www/html/app-images 921 sudo nano /etc/apache2/sites-available/mekanxsari.ru.conf 922 nano /etc/apache2/sites-available/000-default.conf 923 nano /etc/apache2/apache2.conf 924 sudo systemctl reload apache2 925 npm run dev 926 git pull 927 npm run dev 928 pm2 start npm --stylist vite-dev -- run dev 929 pm2 start npm --name frontend-dev -- run dev 930 pm2 start npm --name api-dev -- run dev 931 pm2 status 932 pm2 stop api-dev 933 sudo chown -R www-data:www-data /var/www/html/ 934 sudo chmod -R 755 /var/www/html/ 935 sudo nano /etc/apache2/sites-available/000-default.conf 936 sudo systemctl restart apache2 937 nano /etc/apache2/apache2.conf 938 sudo systemctl restart apache2 939 cd ../../var 940 cd www/html 941 git status 942 ls 943 git status 944 git config --global --add safe.directory /var/www/html 945 git status 946 git branch 947 ls 948 pm2 status 949 pm2 stop styleapp-api 950 pm2 start styleapp-api --watch 951 git pull 952 git branch 953 git reset --hard 954 git pull 955 which pg_dump 956 psql --version 957 ls /usr/lib/postgresql/ 958 ls /usr/lib/postgresql/12/bin 959 sudo nano /var/lib/pgadmin/config_local.py 960 sudo systemctl restart apache2 961 sudo systemctl restart pgadmin4 962 /usr/lib/postgresql/12/bin/pg_dump --version 963 sudo nano /var/lib/pgadmin/config_local.py 964 sudo nano /etc/pgadmin4/config_local.py 965 sudo nano /var/lib/pgadmin/config_local.py 966 sudo chown www-data:www-data /etc/pgadmin4/config_local.py 967 sudo chmod 644 /etc/pgadmin4/config_local.py 968 sudo nano /etc/pgadmin4/config_local.py 969 clear 970 pm2 status 971 pm2 stop frontend-dev 972 pm2 start frontend-dev 973 pm2 status 974 git pull 975 pm2 status 976 pm2 logs styleapp-api 977 git pull 978 cd application 979 npm run dev 980 ls 981 npm run dev 982 cd ../ 983 cd ../../var/www/html 984 git pull 985 pm2 status 986 git pull 987 pg_dump -U your_username -d your_database_name -f output.sql 988 pg_dump -U postgres -d styleapp -f output.sql 989 sudo -u postgres pg_dump -U postgres -d styleapp -f output.sql 990 sudo -u postgres pg_dump -U postgres -d styleapp -F t -f styleapp.tar 991 sudo -u postgres pg_dump -U postgres -d styleapp -f output.sql 992 sudo -u postgres pg_dump -U postgres -d styleapp -f /tmp/styleapp_dump.sql 993 sudo mv /tmp/styleapp_dump.sql /var/www/html/ 994 ls 995 sudo mv styleapp_dump.sql app-images/ 996 ls 997 cd app-images 998 ls 999 rm styleapp_dump.sql 1000 ls 1001 cd ../ 1002 git pull 1003 pm2 status 1004 pm2 logs styleapp-api 1005 pm2 start styleapp-api --watch 1006 pm2 status 1007 pm2 logs styleapp-api 1008 git pull 1009 pm2 start styleapp-api --watch 1010 git pull 1011 cd ../ 1012 ls 1013 cd ../ 1014 ls 1015 cd var/www/html 1016 ls 1017 git pull 1018 pm2 status 1019 cd stylist-dashboard 1020 npm install 1021 pm2 status 1022 pm2 logs styleapp-api 1023 pm2 info styleapp 1024 pm2 info styleapp-api 1025 pm2 delete styleapp-api 1026 pm2 delete api-dev 1027 pm2 delete server 1028 ls 1029 pm2 status 1030 pm2 start server.js --name api --watch 1031 ls 1032 cd ../ 1033 cd api 1034 ls 1035 pm2 start server.js --name api --watch 1036 pm2 status 1037 pm2 logs api 1038 git pull 1039 pm2 start api --watch 1040 pm2 status 1041 pm2 logs api 1042 npm install 1043 ls 1044 npm install bcrypt 1045 pm2 start api --watch 1046 pm2 status 1047 cd ../ 1048 git pull 1049 pm2 logs api 1050 git pull 1051 pm2 status 1052 pm2 logs api 1053 git pull 1054 pm2 status 1055 pm2 logs api 1056 git pull 1057 ls 1058 cd var/www/html 1059 git pull 1060 cd ../../ 1061 ls 1062 cd var/www/html 1063 ls 1064 clear 1065 git pull 1066 pm2 status 1067 pm2 logs api 1068 git pull 1069 pm2 logs api 1070 git pull 1071 pm2 logs api 1072 clear 1073 git pull 1074 pm2 status 1075 pm2 stop api 1076 pm2 start api --watch 1077 git pull 1078 pm2 stop api 1079 pm2 start api --watch 1080 git pull 1081 cd ../../var/www/html 1082 ls 1083 git pull 1084 cd ../../var/www/html 1085 ls 1086 git pull 1087 ls 1088 git pull 1089 pm2 status 1090 pm2 logs api 1091 ls 1092 cd stylist-dashboard 1093 npm install lodash 1094 cd ../ 1095 git pull 1096 git stash 1097 git clean -f 1098 git pull 1099 ls 1100 cd app-images 1101 ls 1102 cd ../ 1103 git pull 1104 cd ../../var/www/html 1105 ls 1106 git pull 1107 cd ../../var/www/html 1108 ls 1109 git pull 1110 ls 1111 pg_dump -U postgres -d mydatabase --schema-only > schema.sql 1112 pg_dump -U postgres -d styleapp --schema-only > schema.sql 1113 sudo -u postgres pg_dump -d styleapp --schema-only > schema.sql 1114 ls 1115 mv schema.sql /app-images 1116 ls 1117 cd app-images 1118 ls 1119 cd /app-images 1120 ls 1121 sudo -u postgres pg_dump -d styleapp --schema-only > schema.sql 1122 ls 1123 cd ../../ 1124 cd var/www/html 1125 ls 1126 rm -rf /var/www/html/* 1127 ls 1128 pm2 status 1129 pm2 stop api 1130 pm2 stop frontend-dev 1131 rm -rf /var/www/html/* 1132 ls 1133 sudo apt-get purge nodejs 1134 sudo apt-get autoremove 1135 sudo systemctl stop postgresql 1136 sudo apt-get --purge remove postgresql postgresql-* pgadmin4 1137 sudo apt-get autoremove 1138 sudo apt-get autoclean 1139 sudo rm -rf /etc/postgresql/ /var/lib/postgresql/ /var/log/postgresql/ ~/.pgadmin/ 1140 sudo apt-get autoremove --purge 1141 sudo apt-get clean 1142 sudo apt-get autoclean 1143 dpkg -l 1144 sudo apt update 1145 sudo apt upgrade 1146 sudo apt autoremove 1147 dpkg -l 1148 curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh 1149 chmod +x openvpn-install.sh 1150 ls 1151 ./openvpn-install.sh 1152 cd etc 1153 cd ./etc 1154 cd 1155 cd etc/openvpn 1156 ls 1157 cd ../ 1158 ls 1159 cd etc 1160 ls 1161 cd openvpn 1162 ls 1163 cd easy-rsa 1164 ls 1165 cd pki 1166 ls 1167 cd ./hpme 1168 cd ./home 1169 cd 1170 cd home 1171 cd ../ 1172 ls 1173 cd home 1174 ls 1175 cd mekan 1176 ls 1177 mv gurban.ovpn var/www/html 1178 ls 1179 mv gurban.ovpn ../../var/www/html 1180 cd ../../var/www/html 1181 ls 1182 cd ../../ 1183 ls 1184 cd var 1185 ls 1186 cd www/html 1187 ls 1188 cd ../../ 1189 ls 1190 cd www/html 1191 rm gurban.ovpn 1192 ls 1193 cd ../../ 1194 ls 1195 cd var/www 1196 ls 1197 cd html 1198 ls 1199 sudo rm openvpn-install.sh 1200 alpha2332 1201 clear 1202 sudo apt update 1203 sudo apt install build-essential 1204 clear 1205 whoami 1206 hostname 1207 man whoami 1208 man man 1209 mkdir week01 1210 ls 1211 mkdir week01 1212 ls 1213 cd week01 1214 ls 1215 nano ext1.txt 1216 ls 1217 nano ext1.txt 1218 ls 1219 echo "ls /usr/bin -r -- grep gcc -m 5 > ext1.txt" > ex1.sh 1220 ls 1221 nano ext1.txt 1222 cd ../../ 1223 ls 1224 cd var/www/html 1225 ls 1226 cd week01 1227 chmod +x ex1.sh 1228 ./ex1.sh 1229 ls 1230 nano ex1.sh 1231 ls 1232 nano ext1.txt.save 1233 ls 1234 clear 1235 ls 1236 rm ex1.sh 1237 rm ext1.txt 1238 rm ext1.txt.save 1239 man grep 1240 ls /usr/bin 1241 ls /usr/bin | grep "gcc" | sort -r | head -n 5 > /ex1.txt 1242 ls 1243 ls /usr/bin | grep "gcc" | sort -r | head -n 5 > ex1.txt 1244 ls 1245 nano ex1.txt 1246 nano ex2.txt 1247 ls 1248 touch ex2.txt 1249 ls 1250 history > ~/week1/ex2.txt 1251 history > ~/week01/ex2.txt 1252 history > ~/root/week01/ex2.txt 1253 history > ex2.txt