Linux Tips & Tricks - Mastering the command line - SED
Manipulating text in files is a common daily task for any sysadmin and learning to use the powerful tools available to do this can make an administrator's life vastly easier.
One of the most common and powerful tools for doing this is 'sed'.
Here's a sed tutorial to get you started.
Also note that sed has a partner 'awk' that is equally powerful in different ways. The two are often learned and used together.
To learn more about sed and awk, check out:
http://www.theunixschool.com/p/awk-sed.html
https://quickleft.com/blog/command-line-tutorials-sed-awk/
http://docstore.mik.ua/orelly/unix/sedawk/
#Linux #Sysadmin #CommandLine
http://www.tecmint.com/linux-sed-command-tips-tricks/
Thursday, 3 November 2016
Monday, 24 October 2016
Securing Linux
Securing Linux
If you're going to implement Linux in an Enterprise or government environment, you'll need to know this.
http://www.tecmint.com/mandatory-access-control-with-selinux-or-apparmor-linux/
If you're going to implement Linux in an Enterprise or government environment, you'll need to know this.
http://www.tecmint.com/mandatory-access-control-with-selinux-or-apparmor-linux/
Tuesday, 4 October 2016
Using Network Manager from the command line
Using Network Manager from the command line
In recent years Linux has been under major assault from a young generation of Apple using, form over function loving, change for the sake of change making kiddies that have attention spans too short to bother to learn how to properly use Linux, never mind how and why things were done the way they were done on Linux and UNIX.
This led to such ridiculous situations as many Linux distros switching to Network Manager for network configuration, even before it could fully perform all of the functions of the systems it replaced. Worst of all there was, for a looong time, no way to configure it from the command line. Making it useless for any serious applications requiring for example, headless operation, remote shell administration, scripted operation, etc. Finally this was rectified with the introduction of nmcli. Though nmcli eventually offered full command line configuration functionality, it seems to have been made intentionally obtuse in it's operation and syntax, as if to punish you for wanting to use the command line instead of a GUI.
For those of you that learned Linux in recent years, under the anti CLI mentality that's become so pervasive, you may by now be advanced enough to want or need to do things from the command line anyway. Here's an article to get you started on using nmcli. Good luck and keep learning the command line.
#Linux #NetworkManager #CommandLine #SysAdmin
http://www.tecmint.com/configure-network-connections-using-nmcli-tool-in-linux/
In recent years Linux has been under major assault from a young generation of Apple using, form over function loving, change for the sake of change making kiddies that have attention spans too short to bother to learn how to properly use Linux, never mind how and why things were done the way they were done on Linux and UNIX.
This led to such ridiculous situations as many Linux distros switching to Network Manager for network configuration, even before it could fully perform all of the functions of the systems it replaced. Worst of all there was, for a looong time, no way to configure it from the command line. Making it useless for any serious applications requiring for example, headless operation, remote shell administration, scripted operation, etc. Finally this was rectified with the introduction of nmcli. Though nmcli eventually offered full command line configuration functionality, it seems to have been made intentionally obtuse in it's operation and syntax, as if to punish you for wanting to use the command line instead of a GUI.
For those of you that learned Linux in recent years, under the anti CLI mentality that's become so pervasive, you may by now be advanced enough to want or need to do things from the command line anyway. Here's an article to get you started on using nmcli. Good luck and keep learning the command line.
#Linux #NetworkManager #CommandLine #SysAdmin
http://www.tecmint.com/configure-network-connections-using-nmcli-tool-in-linux/
Friday, 23 September 2016
Linux Tips & Tricks - image processing from the command line
Linux Tips & Tricks - image processing from the command line
The first time you have to process a lot of images in the same way or need to process them from a script, you'll be thrilled to learn about the wealth of command line tools available. Here is a small sampling of those tools to get you started.
https://opensource.com/life/16/9/command-line-image-tools-linux
The first time you have to process a lot of images in the same way or need to process them from a script, you'll be thrilled to learn about the wealth of command line tools available. Here is a small sampling of those tools to get you started.
https://opensource.com/life/16/9/command-line-image-tools-linux
Thursday, 22 September 2016
Linux Tips & Tricks - using the tar command
Linux Tips & Tricks - using the tar command
tar is one of the core administration tools of the *NIX world, it's been around forever and it's still highly useful today.
Here's a link to get you started using this powerful command-line tool.
#Linux #tar #sysadmin
http://www.linuxtechi.com/17-tar-command-examples-in-linux/
tar is one of the core administration tools of the *NIX world, it's been around forever and it's still highly useful today.
Here's a link to get you started using this powerful command-line tool.
#Linux #tar #sysadmin
http://www.linuxtechi.com/17-tar-command-examples-in-linux/
Linux Tips & Tricks - Hardware Encryption Acceleration
Linux Tips & Tricks - Hardware Encryption Acceleration
Does I has it?
Many systems and CPU's have built in encryption acceleration hardware. To find out if your system includes such hardware and how fast it is, run the following commands and compare the output. If your system has working hw acceleration, the line with -evp in it will return higher rates.
$ openssl speed aes-256-cbc
$ openssl speed -evp aes-256-cbc
For example, here's the relevant portions of the above output from one of my systems.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 68577.43k 72631.80k 73771.43k 74353.36k 74506.10k
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256-cbc 351297.11k 383059.63k 418126.17k 429977.26k 432078.85k
As you can see, the system is roughly 6 times faster with hw acceleration at processing 8k AES-256-CBC packets.
To just see what acceleration engines your system supports, type (with sample output):
# sort -u /proc/crypto | grep module
module : aesni_intel
module : aes_x86_64
module : crc32c_intel
module : crc32_pclmul
module : crct10dif_pclmul
module : kernel
To do a full encryption benchmark run on your system, type:
# openssl speed
#Linux #Encryption
Does I has it?
Many systems and CPU's have built in encryption acceleration hardware. To find out if your system includes such hardware and how fast it is, run the following commands and compare the output. If your system has working hw acceleration, the line with -evp in it will return higher rates.
$ openssl speed aes-256-cbc
$ openssl speed -evp aes-256-cbc
For example, here's the relevant portions of the above output from one of my systems.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 68577.43k 72631.80k 73771.43k 74353.36k 74506.10k
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256-cbc 351297.11k 383059.63k 418126.17k 429977.26k 432078.85k
As you can see, the system is roughly 6 times faster with hw acceleration at processing 8k AES-256-CBC packets.
To just see what acceleration engines your system supports, type (with sample output):
# sort -u /proc/crypto | grep module
module : aesni_intel
module : aes_x86_64
module : crc32c_intel
module : crc32_pclmul
module : crct10dif_pclmul
module : kernel
To do a full encryption benchmark run on your system, type:
# openssl speed
#Linux #Encryption
Tuesday, 6 September 2016
Accessing Google Drive from the Linux command line
Accessing Google Drive from the Linux command line
As much as we love Google, sometimes they suck too. Like for example, the fact that they've never produced an official Linux client for Google Drive really sucks.
However, Linux users are innovative and have come up with several different workaround solutions. Here's a popular one.
#Linux #Google #Drive
Google Google for Work
https://www.howtoforge.com/tutorial/how-to-access-google-drive-from-linux-gdrive/
As much as we love Google, sometimes they suck too. Like for example, the fact that they've never produced an official Linux client for Google Drive really sucks.
However, Linux users are innovative and have come up with several different workaround solutions. Here's a popular one.
#Linux #Google #Drive
Google Google for Work
https://www.howtoforge.com/tutorial/how-to-access-google-drive-from-linux-gdrive/
Subscribe to:
Posts (Atom)