Hello World , I am Lazy Swapper , today We conducted Glug meet about Version Control System . What is “version control” , and why should you care? Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. For the examples in this book, you will use software source code as the files being version controlled, though in reality you can do this with nearly any type of file on a computer. Consider you a part of a team creating website for your college event . you have been given a task to complete the frontend for a particular event . At the same time other members of the team will concentrate on some other work . When you complete the system , you will share the folder with your team leader. He will be collecting it from you and from all others for their respective tasks . So there are many copies of the files occur in our system . Which may cause a mess with project . Also consider a si...
How do you communicate through internet ? what protocol do you use ? How the connection is established ? Well , today we are going to see about establishing a simple tcp connection between client and the server . In the client side , we are gonna to establish a connection with server (send a request ) For that we need to do 3 things , 1.socket() -- create a socket . 2.connect() -- make a connection with the server . 3.recv() -- for receving data from server . below picture tells the needs for tcp client . In tcp server , we are going get the response from the client and response to it . For establishing a tcp server connection we need to do 4 things , 1: socket() -- create a socket connection . 2: bind() -- bind with ip , server_address , port . 3: listen() -- listen for any connections that are active . 4: accept() -- for accepting the client request . For video reference : tcp client tcp server
W ait what did you say , Nothing Serious ...... ;-) linux provides its users all permissions some are dangerous in the sense we can't return from executed command . Some of them are been listed below + rm -rf : Easiest way to delete your entire system files and just everything , everything . rm -rf / - deletes everything in the root directory . rm -rf * - deletes everything in the current directory and sub folders . To be safe from it , create an alias 'rm' as 'rm -i' in .bashrc file in home directory . + Fork bomb : :(){:|:&};: This piece of code is capable of freezing your system .It create an infinite no of process calling itself . This could be also been implemented using fork() function in C . While(1) { fork(); } + mv folder /dev/null : /dev/null is a BLACK HOLE . Anything goes in it will never come back . We can't retrieve the lost data . + > filename : Just deletes all the content of the file . ...
Comments
Post a Comment