{"id":29,"date":"2026-11-29T22:38:50","date_gmt":"2026-11-29T17:38:50","guid":{"rendered":"https:\/\/melochi.kz\/index.php\/hard-soft-links-linux\/"},"modified":"2026-11-29T22:38:50","modified_gmt":"2026-11-29T17:38:50","slug":"hard-soft-links-linux","status":"publish","type":"post","link":"https:\/\/melochi.kz\/index.php\/hard-soft-links-linux\/","title":{"rendered":"\u0416\u0451\u0441\u0442\u043a\u0438\u0435 \u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 (\u043c\u044f\u0433\u043a\u0438\u0435) \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 Linux: \u043a\u043e\u043c\u0430\u043d\u0434\u0430 ln"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0412 Linux \u043d\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0441\u043b\u0430\u0442\u044c\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: <strong>\u0436\u0451\u0441\u0442\u043a\u043e\u0439<\/strong> \u0441\u0441\u044b\u043b\u043a\u043e\u0439 (hard link) \u0438 <strong>\u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439<\/strong>, \u0438\u043b\u0438 \u043c\u044f\u0433\u043a\u043e\u0439, \u0441\u0441\u044b\u043b\u043a\u043e\u0439 (symbolic link, symlink). \u041e\u0431\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>ln<\/code>, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443. \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u0447\u0435\u043c \u043e\u043d\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0438 \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043a\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u2014 \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u0444\u0430\u0439\u043b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0424\u0430\u0439\u043b \u0432 Linux \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u0435\u0439:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>inode<\/strong> \u2014 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 \u0434\u0438\u0441\u043a\u0435: \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u0440\u0430\u0437\u043c\u0435\u0440, \u043f\u0440\u0430\u0432\u0430, \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446, \u0434\u0430\u0442\u044b. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e inode \u0435\u0441\u0442\u044c \u043d\u043e\u043c\u0435\u0440;<\/li>\n\n<li><strong>\u0438\u043c\u044f<\/strong> \u2014 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043f\u0430\u043f\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 inode.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0418\u043c\u044f \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u00ab\u044f\u0440\u043b\u044b\u043a\u00bb \u043d\u0430 inode. \u041d\u043e\u043c\u0435\u0440 inode \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043c\u0451\u043d, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043d\u0430 \u043d\u0435\u0433\u043e, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -li<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>1311042 -rw-r--r-- 1 admin admin 120 \u043d\u043e\u044f 29 22:40 notes.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u2014 \u043d\u043e\u043c\u0435\u0440 inode, \u0430 <code>1<\/code> \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432 \u2014 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u0451\u043d (\u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u0441\u0441\u044b\u043b\u043e\u043a) \u0443 \u044d\u0442\u043e\u0433\u043e inode.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0416\u0451\u0441\u0442\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0416\u0451\u0441\u0442\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u2014 \u044d\u0442\u043e <strong>\u0432\u0442\u043e\u0440\u043e\u0435 \u0438\u043c\u044f \u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0433\u043e inode<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ln notes.txt notes-copy.txt\nls -li<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>1311042 -rw-r--r-- 2 admin admin 120 \u043d\u043e\u044f 29 22:40 notes-copy.txt\n1311042 -rw-r--r-- 2 admin admin 120 \u043d\u043e\u044f 29 22:40 notes.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0423 \u043e\u0431\u043e\u0438\u0445 \u0438\u043c\u0451\u043d \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 inode, \u0430 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0441\u0441\u044b\u043b\u043e\u043a \u0441\u0442\u0430\u043b <code>2<\/code>. \u042d\u0442\u043e \u043d\u0435 \u043a\u043e\u043f\u0438\u044f: \u043e\u0431\u0430 \u0438\u043c\u0435\u043d\u0438 \u0440\u0430\u0432\u043d\u043e\u043f\u0440\u0430\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0418\u0437\u043c\u0435\u043d\u0438\u043b\u0438 \u0442\u0435\u043a\u0441\u0442 \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u043d\u043e \u0438\u043c\u044f \u2014 \u043e\u043d \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u0442\u043e\u0440\u043e\u0435.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c <code>notes.txt<\/code>, \u0434\u0430\u043d\u043d\u044b\u0435 <strong>\u043d\u0435 \u043f\u0440\u043e\u043f\u0430\u0434\u0443\u0442<\/strong>: \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u0441\u044f \u0434\u043e 1, \u0438 \u0444\u0430\u0439\u043b \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043a <code>notes-copy.txt<\/code>. \u041c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0438\u043c\u044f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u0441\u0441\u044b\u043b\u043e\u043a:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 <strong>\u043e\u0434\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong> (\u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430);<\/li>\n\n<li>\u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0436\u0451\u0441\u0442\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 <strong>\u043f\u0430\u043f\u043a\u0443<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f (\u043c\u044f\u0433\u043a\u0430\u044f) \u0441\u0441\u044b\u043b\u043a\u0430<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u2014 \u044d\u0442\u043e <strong>\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0444\u0430\u0439\u043b, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043f\u0443\u0442\u044c<\/strong> \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u0438\u043b\u0438 \u043f\u0430\u043f\u043a\u0435. \u0411\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 \u2014 \u044f\u0440\u043b\u044b\u043a \u0432 Windows, \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u043d \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ln -s \/var\/log\/nginx\/error.log nginx-errors\nls -l<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>lrwxrwxrwx 1 admin admin 24 \u043d\u043e\u044f 29 22:45 nginx-errors -&gt; \/var\/log\/nginx\/error.log<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0411\u0443\u043a\u0432\u0430 <code>l<\/code> \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 <code>-&gt;<\/code> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0441\u044b\u043b\u043a\u0430 \u0438 \u043a\u0443\u0434\u0430 \u043e\u043d\u0430 \u0432\u0435\u0434\u0451\u0442.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0443 \u0441\u0441\u044b\u043b\u043a\u0438 <strong>\u0441\u0432\u043e\u0439 inode<\/strong>, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u0442 inode \u0446\u0435\u043b\u0438;<\/li>\n\n<li>\u043c\u043e\u0436\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c <strong>\u043d\u0430 \u043f\u0430\u043f\u043a\u0443<\/strong> \u0438 <strong>\u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u0438\u043b\u0438 \u0434\u0438\u0441\u043a<\/strong>;<\/li>\n\n<li>\u0435\u0441\u043b\u0438 \u0446\u0435\u043b\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c, \u0441\u0441\u044b\u043b\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f <strong>\u00ab\u0431\u0438\u0442\u043e\u0439\u00bb<\/strong> (\u0432\u0438\u0441\u044f\u0447\u0435\u0439) \u2014 \u043e\u043d\u0430 \u0435\u0441\u0442\u044c, \u043d\u043e \u0432\u0435\u0434\u0451\u0442 \u0432 \u043d\u0438\u043a\u0443\u0434\u0430;<\/li>\n\n<li>\u0435\u0441\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u043c\u0443 \u0441\u0441\u044b\u043b\u043a\u0443, \u0441 \u0446\u0435\u043b\u044c\u044e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><\/th><th>\u0416\u0451\u0441\u0442\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/th><th>\u0421\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/th><\/tr><\/thead><tbody><tr><td>\u041a\u043e\u043c\u0430\u043d\u0434\u0430<\/td><td><code>ln \u0446\u0435\u043b\u044c \u0438\u043c\u044f<\/code><\/td><td><code>ln -s \u0446\u0435\u043b\u044c \u0438\u043c\u044f<\/code><\/td><\/tr><tr><td>inode<\/td><td>\u0442\u043e\u0442 \u0436\u0435, \u0447\u0442\u043e \u0443 \u0444\u0430\u0439\u043b\u0430<\/td><td>\u0441\u0432\u043e\u0439<\/td><\/tr><tr><td>\u041d\u0430 \u043f\u0430\u043f\u043a\u0443<\/td><td>\u043d\u0435\u043b\u044c\u0437\u044f<\/td><td>\u043c\u043e\u0436\u043d\u043e<\/td><\/tr><tr><td>\u041d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b<\/td><td>\u043d\u0435\u043b\u044c\u0437\u044f<\/td><td>\u043c\u043e\u0436\u043d\u043e<\/td><\/tr><tr><td>\u0423\u0434\u0430\u043b\u0438\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0444\u0430\u0439\u043b<\/td><td>\u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043f\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438<\/td><td>\u0441\u0441\u044b\u043b\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u0438\u0442\u043e\u0439<\/td><\/tr><tr><td>\u041a\u0430\u043a \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u044c \u0432 <code>ls -l<\/code><\/td><td>\u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0441\u0441\u044b\u043b\u043e\u043a \u0431\u043e\u043b\u044c\u0448\u0435 1<\/td><td>\u0431\u0443\u043a\u0432\u0430 <code>l<\/code> \u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 <code>-&gt;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u043e\u0432\u043d\u043e \u0442\u043e\u0442 \u043f\u0443\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438. \u041e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f <strong>\u043e\u0442 \u043f\u0430\u043f\u043a\u0438, \u0433\u0434\u0435 \u043b\u0435\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0430<\/strong>, \u0430 \u043d\u0435 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u0438. \u0427\u0430\u0441\u0442\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\nln -s site\/config.php \/var\/www\/html\/config.php   # \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0441\u044b\u043b\u043a\u0430 \u0432 <code>\/var\/www\/html<\/code> \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c <code>\/var\/www\/html\/site\/config.php<\/code>. \u041d\u0430\u0434\u0451\u0436\u043d\u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0446\u0435\u043b\u0438 \u0438\u043b\u0438 \u043f\u043e\u0440\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0441\u0447\u0451\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u0441\u0430\u043c\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043a\u043b\u044e\u0447\u043e\u043c <code>-r<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ln -s \/home\/admin\/site\/config.php \/var\/www\/html\/config.php\nln -sr ~\/site\/config.php \/var\/www\/html\/config.php<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>readlink -f \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0438          # \u043a\u0443\u0434\u0430 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u0435\u0434\u0451\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 (\u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c)\nln -sf \u043d\u043e\u0432\u0430\u044f-\u0446\u0435\u043b\u044c \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0438    # \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0444\u0430\u0439\u043b\nln -sfn \u043d\u043e\u0432\u0430\u044f-\u043f\u0430\u043f\u043a\u0430 \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0438  # \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0430\u043f\u043a\u0443\nunlink \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0438               # \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443\nfind \/\u043f\u0443\u0442\u044c -xtype l             # \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0431\u0438\u0442\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438\nfind \/ -xdev -samefile \u0444\u0430\u0439\u043b     # \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0436\u0451\u0441\u0442\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u043b\u044e\u0447 <code>-n<\/code> \u0432 <code>ln -sfn<\/code> \u0432\u0430\u0436\u0435\u043d \u0434\u043b\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u043f\u0430\u043f\u043a\u0438: \u0431\u0435\u0437 \u043d\u0435\u0433\u043e <code>ln<\/code> \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043d\u043e\u0432\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 <strong>\u0432\u043d\u0443\u0442\u0440\u0438<\/strong> \u043f\u0430\u043f\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0442\u0430\u0440\u0430\u044f, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0430\u043c\u0443 \u0441\u0441\u044b\u043b\u043a\u0443.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u0423\u0434\u0430\u043b\u044f\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0430\u043f\u043a\u0443 \u0431\u0435\u0437 \u043a\u043e\u0441\u043e\u0439 \u0447\u0435\u0440\u0442\u044b \u0432 \u043a\u043e\u043d\u0446\u0435: <code>rm \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0438<\/code> \u0438\u043b\u0438 <code>unlink \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0438<\/code>. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 <code>rm -r \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0438\/<\/code> \u0441 \u043a\u043e\u0441\u043e\u0439 \u0447\u0435\u0440\u0442\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u043f\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0430.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u0413\u0434\u0435 \u044d\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0421\u0430\u0439\u0442\u044b \u0432 Nginx \u0438 Apache.<\/strong> \u0424\u0430\u0439\u043b\u044b \u0432 <code>sites-enabled<\/code> \u2014 \u044d\u0442\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 <code>sites-available<\/code>. \u0423\u0434\u0430\u043b\u0438\u043b\u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u2014 \u0441\u0430\u0439\u0442 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d, \u0430 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u2014 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u043e <a href=\"https:\/\/melochi.kz\/index.php\/nginx-debian-13\/\">Nginx \u0432 Debian 13<\/a>).<\/li>\n\n<li><strong>\u0412\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c.<\/strong> \u041f\u0430\u043f\u043a\u0430 <code>\/etc\/alternatives<\/code> \u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 <code>\/usr\/bin\/editor<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c, \u043a\u0430\u043a\u0430\u044f \u0438\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0431\u0443\u0434\u0435\u0442 \u00ab\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00bb.<\/li>\n\n<li><strong>\u041f\u0435\u0440\u0435\u0435\u0437\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0438\u0441\u043a.<\/strong> \u0411\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u044f\u0442 \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u0438\u0441\u043a, \u0430 \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u044e\u0442.<\/li>\n\n<li><strong>\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438.<\/strong> \u0423\u0442\u0438\u043b\u0438\u0442\u044b \u0432\u0440\u043e\u0434\u0435 <code>rsnapshot<\/code> \u0438 <code>rsync --link-dest<\/code> \u0434\u0435\u043b\u0430\u044e\u0442 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u0435 \u0441\u043d\u0438\u043c\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u0436\u0451\u0441\u0442\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438: \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0437\u0430\u043d\u043e\u0432\u043e \u0438 \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442 \u043c\u0435\u0441\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041d\u0443\u0436\u043d\u043e \u0432\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0432\u043d\u043e\u043f\u0440\u0430\u0432\u043d\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0438\u043c\u0451\u043d, \u2014 <strong>\u0436\u0451\u0441\u0442\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/strong> (<code>ln<\/code>).<\/li>\n\n<li>\u041d\u0443\u0436\u0435\u043d \u00ab\u044f\u0440\u043b\u044b\u043a\u00bb \u043d\u0430 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u043f\u0430\u043f\u043a\u0443, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0434\u0438\u0441\u043a\u0435, \u2014 <strong>\u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/strong> (<code>ln -s<\/code>). \u0412 \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043e\u043d\u0430 \u043d\u0443\u0436\u043d\u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0447\u0430\u0449\u0435.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0427\u0435\u043c \u0436\u0451\u0441\u0442\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439: inode, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0442\u0438, \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 ln \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0437 \u0436\u0438\u0437\u043d\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[19,15],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-linux-commands","tag-ln","tag-terminal"],"_links":{"self":[{"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melochi.kz\/index.php\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}