diff --git a/README.md b/README.md index 1737644..68f98ae 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 @@ -1034,8 +1050,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:
@@ -1067,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.
+
@@ -1097,12 +1119,13 @@ To view all available signals run `kill -l`
What are the possible states of a process in Linux?
- +
 Running
 Waiting
 Stopped
 Terminated
 Zombie
+