From edae134914a79a6f6c8e02e07dcb54a36735c072 Mon Sep 17 00:00:00 2001 From: u2024 <157313309+u2024@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:58:46 +0200 Subject: [PATCH] Update linux.txt --- homework/linux.txt | 139 +++++++++++++++++---------------------------- 1 file changed, 51 insertions(+), 88 deletions(-) diff --git a/homework/linux.txt b/homework/linux.txt index 0829923..85bac85 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -1,88 +1,51 @@ -cat selected.txt commands.txt -192 processes.txt -message+ 492 0.1 0.1 9008 5884 ? Ss 15:16 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only -root 502 0.0 0.4 42384 16324 ? Ss 15:16 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers -root 639 0.1 0.5 192944 21524 ? Ssl 15:16 0:00 /usr/bin/python3 /usr/lib/python3/dist-packages/timekpr/server/timekprd.py /usr/bin/timekprd -sebasti+ 1031 1.3 0.4 1224216 19260 ? S processes.txt - 856 cat processes.txt - 857 clear - 858 cp processes.txt copy.txt - 859 mkdir backup - 860 mv copy.txt backup/ - 861 cd backup - 862 ls - 863 cd .. - 864 clear - 865 wc processes.txt - 866 man wc - 867 wc -l processes.txt - 868 clear - 869 wc -l processes.txt | selected.txt - 870 selected.txt | wc -l processes.txt - 871 wc -l processes.txt &> selected.txt - 872 ls - 873 less selected.txt - 874 clear - 875 man grep - 876 clear - 877 grep /bin processes.txt - 878 clear - 879 grep /bin processes.txt << selected.txt -a -a -a -a - - 880 clear - 881 cat selected.txt - 882 grep /bin processes.txt >> selected.txt - 883 CAT S - 884 cat selected.txt - 885 clear - 886 history - 887 history | tail -51n < commands.txt - 888 history < commands.txt | tail -51n - 889 man tail - 890 touch commands.txt - 891 history - 892 history < commands.txt | tail -n56 - 893 history | tail -n57 < commands.txt - 894 cat commands.txt - 895 history | tail -n57 - 896 history | tail -n60 - 897 history | tail -n67 < commands.txt - 898* cat commands.tx - 899 history | tail -n69 > commands.txt - 900 cat commands.txt - 901 history | tail -n59 > commands.txt - 902 cat commands.txt - 903 history | tail -n61 > commands.txt && cat commands.txt - 904 history | tail -n63 > commands.txt && cat commands.txt - 905 history | tail -n65 > commands.txt && cat commands.txt - 906 history | tail -n70 > commands.txt && cat commands.txt - 907 history | tail -n73 > commands.txt && cat commands.txt +$ cat selected.txt commands.txt +200 processes.txt +77:message+ 574 0.0 0.1 8980 5808 ? Ss 21:47 0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only +80:root 586 0.0 0.4 42384 19192 ? Ss 21:47 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +94:root 731 0.0 0.5 192944 23196 ? Ssl 21:47 0:01 /usr/bin/python3 /usr/lib/python3/dist-packages/timekpr/server/timekprd.py /usr/bin/timekprd +101:sebasti+ 1029 0.0 0.4 1076052 17252 ? S processes.txt + 942 cat processes.txt + 943 clear + 944 cp processes.txt copy.txt + 945 mkdir backup + 946 mv copy.txt backup/ + 947 cd backup/ + 948 ls + 949 cd .. + 950 clear + 951 wc -l processes.txt | selected.txt + 952 touch selected.txt + 953 wc -l processes.txt | selected.txt + 954 wc -l processes.txt &> selected.txt + 955 man grep + 956 grep -name -n processes.txt "/bin" >> selected.txt + 957 man grep + 958 grep -name --line-number processes.txt "/bin" >> selected.txt + 959 grep --line-number processes.txt "/bin" >> selected.txt + 960 grep -name -f --line-number processes.txt "/bin" >> selected.txt + 961 man grep + 962 grep -name -n "/bin" processes.txt >> selected.txt + 963 grep -name -n "/bin" processes.txt | selected.txt + 964 grep --name -n "/bin" processes.txt >> selected.txt + 965 grep -name -n "/bin" processes.txt >> selected.txt + 966 man grep + 967 grep -n "/bin" processes.txt >> selected.txt + 968 history + 969 touch commands.txt + 970 history | tail -n32 > commands.txt