Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions homework/linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
4
1633 1 1633 39052 ? 4096 20:09:18 /usr/bin/mintty
1669 1634 1669 43728 pty0 4096 20:11:18 /usr/bin/ps
1634 1633 1634 8152 pty0 4096 20:09:18 /usr/bin/bash
123 cd my_homework/
124 touch processes.txt
125 ps aux > processes.txt
126 cp processes.txt copy.txt
127 mkdir backup
128 mv copy.txt backup/
129 wc -l < processes.txt > selected.txt
130 cat processes.txt | grep /bin
131 grep -n "/bin" processes.txt >> selected.txt
132 history | tail --lines=25
133 history | tail --lines=11
134 history | tail -10 > commands.txt
135 cat selected.txt commands.txt