Linux-(Files and IPC) 1) Explain chmod and umask commands Ans: a) CHMOD: To change the existing file permission,we can change file permission to new permission or can change one permission alone. eg: chmod 0664 file_name rwx rwx rxx user group others b) UMASK: When you create a file or directory, the default file permissions assigned to the file or directory are controlled by the user mask. ...
PIR Senesor / Motion Sensor using Arduino Code /* PIR SENSOR / MOTION SENSOR https://electronicassist.blogspot.in/ ARJUN ARANGIL 9444868542 */ int ledPin = 13; // choose the pin for the LED int inputPin = 2; // choose the input pin (for PIR sensor) int leda = 12; // choose the pin for the LED int ledb = 11; // choose the pin for the LED int pirState = LOW; // we start, assuming no motion detected int val = 0; // variable for reading the pin status void setup() { pinMode(ledPin, OUTPUT); ...