Browse Source

first week version 1

master
RinRi 1 year ago
commit
73965f8c9f
9 changed files with 114 additions and 0 deletions
  1. +3
    -0
      week01/ex1.sh
  2. +5
    -0
      week01/ex1.txt
  3. +7
    -0
      week01/ex2.sh
  4. +5
    -0
      week01/ex2.txt
  5. +17
    -0
      week01/ex3.sh
  6. BIN
      week01/ex4
  7. +5
    -0
      week01/ex4.c
  8. +53
    -0
      week01/home/home.txt
  9. +19
    -0
      week01/root/root.txt

+ 3
- 0
week01/ex1.sh View File

@@ -0,0 +1,3 @@
#!/bin/sh

find /usr/bin -name "*gcc*" | sort -r | head -n5 > ex1.txt

+ 5
- 0
week01/ex1.txt View File

@@ -0,0 +1,5 @@
/usr/bin/x86_64-pc-linux-gnu-gcc-ranlib
/usr/bin/x86_64-pc-linux-gnu-gcc-nm
/usr/bin/x86_64-pc-linux-gnu-gcc-ar
/usr/bin/x86_64-pc-linux-gnu-gcc-12.2.0
/usr/bin/x86_64-pc-linux-gnu-gcc

+ 7
- 0
week01/ex2.sh View File

@@ -0,0 +1,7 @@
#!/bin/sh

vim ex1.sh
ls
git status
history
history | tail -n5 > ex2.txt

+ 5
- 0
week01/ex2.txt View File

@@ -0,0 +1,5 @@
54476 vim ex1.sh
54477 ls
54478 git status
54479 history
54480 history | tail -n5

+ 17
- 0
week01/ex3.sh View File

@@ -0,0 +1,17 @@
#!/bin/sh

date
sleep 3
mkdir root
date
sleep 3
mkdir home
date
sleep 3
ls -tr / > ./root/root.txt
date
sleep 3
ls -tr ~ > ./home/home.txt
ls
ls ./root
ls ./home

BIN
week01/ex4 View File


+ 5
- 0
week01/ex4.c View File

@@ -0,0 +1,5 @@
#include <stdio.h>

int main() {
printf("Hello World!\n");
}

+ 53
- 0
week01/home/home.txt View File

@@ -0,0 +1,53 @@
Media
data
Music
nextcloud
Games
vpnconf
Zotero
org
work
polygon
hacking
disks
cpsrc-archive
eap
interview
dwhelper
useful
hobby
tech
fun
out.pdf
bindings
lol.cpp
notes
todo
Makefile
coverletter.md
coverletter.pdf
assignment
Screenshots
sd
wifiesp
RFID authentication.pdf
letter
docs
library
smartcontract
walls
Desktop
android
src
network
cpsrc
Documents
scripts
machines
class
namelist
namelist.sorted
main.cpp
a.out
edu
Downloads

+ 19
- 0
week01/root/root.txt View File

@@ -0,0 +1,19 @@
boot
lost+found
srv
home
mnt
sbin
lib64
lib
bin
opt
root
usr
var
sys
proc
dev
run
etc
tmp

Loading…
Cancel
Save