Black Bytes | RSS Feed http://www.blackbytes.info Ruby Programming Tutorials Mon, 17 Oct 2016 01:59:51 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.6 Writing a Shell in 25 Lines of Ruby Code http://www.blackbytes.info/2016/07/writing-a-shell-in-ruby/ http://www.blackbytes.info/2016/07/writing-a-shell-in-ruby/#comments Tue, 12 Jul 2016 16:14:14 +0000 http://www.blackbytes.info/?p=3314 If you use Linux or Mac, every time you open a terminal you are using a shell application. A shell is just an interface that helps you execute commands in your system. In addition to that, the shell also hosts environment variables & has useful features like a command history and auto-completion. If you are […]

The post Writing a Shell in 25 Lines of Ruby Code appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2016/07/writing-a-shell-in-ruby/feed/ 2
Performance analysis with perf http://www.blackbytes.info/2015/02/perfomance-analysis-with-perf/ http://www.blackbytes.info/2015/02/perfomance-analysis-with-perf/#comments Sat, 21 Feb 2015 17:35:59 +0000 http://www.blackbytes.info/?p=1388 Is Apache or some other process using most of your CPU but you have no idea why? I have the solution for you! Linux has some low-level troubleshooting tools that will let you investigate the issue and find out what’s going on. One of those tools is strace, which will capture all the system calls […]

The post Performance analysis with perf appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2015/02/perfomance-analysis-with-perf/feed/ 0
Watching your network http://www.blackbytes.info/2014/03/watching-your-network/ http://www.blackbytes.info/2014/03/watching-your-network/#comments Sat, 29 Mar 2014 19:32:54 +0000 http://www.blackbytes.info/?p=1172 There is a number of tools you can use in Linux to see what is going on your machine at the network level, one of the most common is netstat. This command will show you all the connections on your system, including some that you may not be interested in, like UNIX sockets. There are […]

The post Watching your network appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2014/03/watching-your-network/feed/ 0
Bash expansions http://www.blackbytes.info/2013/11/bash-expansions/ http://www.blackbytes.info/2013/11/bash-expansions/#comments Sat, 30 Nov 2013 17:18:35 +0000 http://www.blackbytes.info/?p=1080 In this post you will learn about bash expansions, you probably already used them if you have done something like “ls *.txt”. Basically the shell does some processing on the command line before actually executing it, which enables us to do a number of things. Here is a small cheatsheet of the most useful expansions: […]

The post Bash expansions appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2013/11/bash-expansions/feed/ 0
Column formatting http://www.blackbytes.info/2012/11/column-formatting/ http://www.blackbytes.info/2012/11/column-formatting/#comments Fri, 23 Nov 2012 19:21:29 +0000 http://blackbytes.wordpress.com/?p=445 Here is a quick tip on how to make the output of some tools prettier, for example we can use the mount command which by default looks like this: [crayon-5809addc8d4cb916046550/] Using the column command with the -t option we can apply some formatting so it is more readable: [crayon-5809addc8d4d9890580469/] Much better, isn’t it? Man page […]

The post Column formatting appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2012/11/column-formatting/feed/ 0