The best systems administrators are set apart by their efficiency. And if an efficient systems administrator can do a task in 10 minutes that would take another mortal two hours to complete, then the efficient . There are thousands of tricks you can learn from someone's who's an expert at the command line.
For a person new to Linux, finding Linux functional is still not very easy even after the emergence of user friendly Linux distro like Ubuntu and Mint.
One of MPlayer’s lesser-known features is the ability to control it from a console, a shell script or even over the network. There are two types of people in this world: those who think MPlayer is the best media player in the history of existence, and those who are wrong. The secret to this trick is in MPlayer’s -slave option, which tells the program to accept commands from the stdin stream instead of keystrokes. For instance, try this in one terminal:. Combine this with the -input option, and commands are read from a file, or a FIFO.
The sudoers file can provide detailed control over user privileges, but with very little effort, you can still get a lot of benefit from sudo. In this post, we’re.
We rely on encryption to keep our data safe, but this means we have various keys and passphrases we need to look after. Even the GPG key is not safe, as it is obvious what it is and the passphrase could be cracked with a dictionary attack. Keeping copies of them on a USB stick may seem like a good idea, until you lose the stick and all your keys enter the public domain. A GPG key has a passphrase to protect it, but what about filesystem keys or SSH authentication keys.
Consider the above example. First we use ls to generate a list of files in the current directory (making sure we disable the colour codes as they produce unwanted characters). Xargs assembles complicated command-line operations using lists of files, so you don’t have to type them manually. You pass xargs a list of files, and it arranges them into file1 file2 file3. Then, using the good old pipe (|), we send the results to the head utility, which grabs the first ten entries. As we saw before.
Yes, but using more or less wouldn’t have shown off piping, would it. Besides, I use cat/less like that all the time – usually I run cat, think “damn, the output is too long”, then just tap Up on the keypad and add less to the end because it’s faster that way.
Most of the people abominate the command line, but it’s one of the most systematic way to get things done. With this concise set of notes you will get daily updates in your email for free. We have organized a list of useful Linux commands that can be used to make your work more efficiently.
(PS: if you’re looking for general Linux tips, check out our previous two articles: Linux tips every geek should know and More Linux tips every geek should know. We also have an article with more Bash tips for power users if you’re eager to the neighbourhood Bash wizard, and an excellent guide to mastering the Linux command line.
He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. Follow him on Twitter, Facebook, Google+.
Nice is one of those commands that sound really good, but you can never think of a reason to use. Most Linux users know of the nice command but few actually use it. Nice can change the priority of a running process, giving it a greater or smaller share of the processor. This should ensure that even when your system is at 100% CPU, you will still be able to move the windows and click on the mouse. Usually this is handled by the Linux scheduler. The scheduler guarantees that processes with a higher priority (like those that involve user input) get their share of the resources. Occasionally though, it can be incredibly useful.
This resides in your system BIOS and keeps the time while your computer is turned off. The system clock takes the time from the hardware clock as part of the boot procedure. You can query, and set, the hardware clock using the hwclock command, and by typing. One is in the system clock, and this is the one probed by date. There are two clocks on board your system. The other is the hardware clock.