last lab
This commit is contained in:
11
labLinux/lab2/create2.sh
Executable file
11
labLinux/lab2/create2.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
touch my_file
|
||||
id >> my_file
|
||||
groups >> my_file
|
||||
w >> my_file
|
||||
last >> my_file
|
||||
ls ~/ >>my_file
|
||||
chage -l $USER >> my_file
|
||||
whoami >> my_file
|
||||
cat /etc/passwd >> my_file
|
||||
getent passwd $USER >> my_file
|
||||
Reference in New Issue
Block a user