From f1841f9d0f7f800ed3d5f9ab7101d542024c8022 Mon Sep 17 00:00:00 2001 From: Qvinti Date: Sun, 21 Jul 2024 17:27:22 +0200 Subject: [PATCH] Update linux.sh --- linux.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/linux.sh b/linux.sh index 271a0bc..fb34f95 100644 --- a/linux.sh +++ b/linux.sh @@ -17,9 +17,18 @@ sudo useradd -M testuser # 5. Create a directory named testdir in your home directory cd ~ mkdir testdir +# or +mkdir ~/testdir +# or if need create parent dir +mkdir -p ~/testdir # 6. Change permissions of testdir +cd ~ chmod 700 testdir +# or if need recursive mode +chmod -R 700 ~/testdir +# or you can create folder with permissions +mkdir -r 700 -p ~/testdir # 7. Display the current network configuration ifconfig