From 8cebed155022395859cffc5428de3d9843fa3e1a Mon Sep 17 00:00:00 2001 From: surister Date: Thu, 28 Nov 2019 13:27:28 +0100 Subject: [PATCH 1/3] add answer + styling --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4f4d1e4..ea049f5 100644 --- a/README.md +++ b/README.md @@ -1034,8 +1034,13 @@ Soft links can be created between different file systems while hard link can be Fix the following commands: * sed "s/1/2/g' /tmp/myFile - * find . -iname \*.yaml -exec sed -i "s/1/2/g" {} ;
- + * find . -iname \*.yaml -exec sed -i "s/1/2/g" {} ; + +
+ +sed 's/1/2/g' /tmp/myFile + find . -iname "*.yaml" -exec sed -i "s/1/2/g" {} \; +
Explain what is stored in each of the following paths and if there is anything unique about it:
@@ -1097,12 +1102,13 @@ To view all available signals run `kill -l`
What are the possible states of a process in Linux?
- +
 Running
 Waiting
 Stopped
 Terminated
 Zombie
+
From 84cd2765172d65c486e1863a18b635d2a54a3e75 Mon Sep 17 00:00:00 2001 From: surister Date: Fri, 29 Nov 2019 12:53:41 +0100 Subject: [PATCH 2/3] new linuxs answers --- README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ea049f5..6915e01 100644 --- a/README.md +++ b/README.md @@ -800,7 +800,22 @@ TCP establishes a connection between the client and the server to guarantee the
Running the command df you get "command not found". What could be wrong and how to fix it?
-
+
+

+Most likely the default/generated $PATH was somehow modified or overridden thus not containing /bin/ where df would normally go. +This issue could also happen if bash_profile or any configuration file of your interpreter was wrongly modified, causing erratics behaviours. +You would solve this by fixing your $PATH variable: + +As to fix it there are serveral options: + +1. Manually adding what you need to your $PATH PATH="$PATH":/user/bin:/..etc +2. You have your weird env variables backed up. +3. You would look for your distro default $PATH variable, copy paste using method #1 + +Note: There are many ways of getting errors like this: if bash_profile or any configuration file of your interpreter was wrongly modified; causing erratics behaviours, +permissions issues, bad compiled software (if you compiled it by yourself)... there is no answer that will be true 100% of the time. +

+
How to make sure a service will start on a OS of your choice?
@@ -816,8 +831,7 @@ With cron, tasks are scheduled using the following format: -The tasks are stored in a cron file. - +The tasks are stored in a cron file, you can write in it using crontab -e Alternatively if you are using a distro with systemd it's recommended to use systemd timers. @@ -828,6 +842,8 @@ Alternatively if you are using a distro with systemd it's recommended to use sys Normally you will schedule batch jobs. + +
##### Permissions @@ -1072,10 +1088,11 @@ execution or run forever
What signal is used when you run 'kill '?
- +
 The default signal is SIGTERM (15). This signal kills
 process gracefully which means it allows it to save current
 state configuration.
+
From 1b78fe666c0c5e23b8e193d17517a587edf159a4 Mon Sep 17 00:00:00 2001 From: surister Date: Fri, 29 Nov 2019 12:57:01 +0100 Subject: [PATCH 3/3] styling --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff183b5..68f98ae 100644 --- a/README.md +++ b/README.md @@ -801,7 +801,7 @@ TCP establishes a connection between the client and the server to guarantee the
Running the command df you get "command not found". What could be wrong and how to fix it?
-

+

Most likely the default/generated $PATH was somehow modified or overridden thus not containing /bin/ where df would normally go. This issue could also happen if bash_profile or any configuration file of your interpreter was wrongly modified, causing erratics behaviours. You would solve this by fixing your $PATH variable: @@ -813,7 +813,7 @@ As to fix it there are serveral options: 3. You would look for your distro default $PATH variable, copy paste using method #1 Note: There are many ways of getting errors like this: if bash_profile or any configuration file of your interpreter was wrongly modified; causing erratics behaviours, -permissions issues, bad compiled software (if you compiled it by yourself)... there is no answer that will be true 100% of the time. +permissions issues, bad compiled software (if you compiled it by yourself)... there is no answer that will be true 100% of the time.

@@ -1054,7 +1054,7 @@ Soft links can be created between different file systems while hard link can be
-sed 's/1/2/g' /tmp/myFile +sed 's/1/2/g' /tmp/myFile
find . -iname "*.yaml" -exec sed -i "s/1/2/g" {} \;