Skip to main content

Posts

Showing posts from August 19, 2018

How To Partition and Format Storage Devices in Linux

Introduction Preparing a new disk for use on a Linux system can be quick and easy. There are many tools, filesystem formats, and partitioning schemes that may complicate the process if you have specialized needs, but if you want to get up and running quickly, it's fairly straightforward. This guide will cover the following process: Identifying the new disk on the system. Creating a single partition that spans the entire drive (most operating systems expect a partition layout, even if only one filesystem is present) Formatting the partition with the Ext4 filesystem (the default in most modern Linux distributions) Mounting and setting up Auto-mounting of the filesystem at boot Install the Tools To partition the drive, we'll use the parted utility. In most cases, this will already be installed on the server. If you are on an Ubuntu or Debian server and do not have parted yet, you can install it by typing: sudo apt-get update sudo apt-get ins

外国程序员求助:快 40 了,不知道以后该怎么办

编者按: 三十而立,四十而不惑。迈入不惑之年,健康、家庭、工作、生活等各个方面其实都发生了一些细微的变化。有一位程序员在 Hacker News 上发了一则帖子,想咨询一些关于人生职场的建议。本文编译自 Hacker News 上原题为《Ask HN: Turning 40 soon – seeking personal and professional life advice》的文章。 Hacker News 上的朋友大家好!一直以来,我都为自己能成为社区的一份子感到开心。还有不到一个月的时间,我就要迈入不惑之年了。作为一个技术迷,同样也是两个孩子的父亲,我想问问大家有什么关于人生或是职场上的建议可以分享给我。期待你们的回复! 网友scarface74评论: 我现在43岁。我的建议是优先考虑以下三点: 1. 健康。你的健康是最为重要的一件事。没错,这甚至要比你的家庭还要重要。如果你病了或是过世了,这对你的家庭绝非是好事。 2. 家庭和朋友。相比再找下一任妻子,找个新工作要容易太多了。你现在所处这个年龄,就需要你动脑子来工作,而不是只会埋头苦干。你已经不是年轻的小伙子啦,不必一周工作60个小时,牺牲自己的时间和健康来赚钱。 就朋友来说,我必须努力和朋友保持联系,维系友谊。当然,有一点众所周知,男性没有女性那么在意深厚的友谊。 3. 工作。继续提升自己的技能,学习新技术,与时俱进。此外,你也不必迎合年轻孩子的爱好。有很多企业岗位都是一周工作40小时即可,上完班你就可以回家休息了。只要你一直有在提升自己的技能,那就不必担心工作上会因为年纪大而受歧视。 网友quietthrow回复: 我非常同意你的观点。自从我知道了全球股权众筹鼻祖Naval Ravikant之后,这两年来,你所说的这三点就成为了我生活的重心。(他非常透彻得提炼了我思考的内容,如果有感兴趣的朋友,可以谷歌搜索一下他的博客《startup boy life formula》。) 但我发现你很难将这些重点落实到实际的行动中。我一直在不断尝试,但是发现自己总是会偏离方向......如果有什么可以有助于保持专注的技巧,请告诉我一下。 另外,我把你说的第二点总结成了一个词,那就是“关系”。 网友scarface74回复: 这对我来说没那么难。