These are so-called directional derivatives.
So, let's say we are given a function f:\mathbb{R}^3\rightarrow \mathbb{R} and a unit vector \mathbf{v}=(v_1,v_2,v_3). The the directional derivative of f in v is given by
D_\mathbb{v} f = v_1\frac{\partial f}{\partial x}+v_2\frac{\partial f}{\partial y}+v_2\frac{\partial f}{\partial z}
First of all, note that if \mathbb{v}=(1,0,0), then we just obtain the partial derivative with respect to x. So this is clearly the case where you differentiate with respect to the x-axis.
As an example, given f(x,y,z)=x^5yz^4+\log(x)\sin(yz). We wish to find the partial derivative with respect to the line x=y=-z. A unit vector on this line is given by \mathbb{v}=(\frac{1}{\sqrt{3}},\frac{1}{\sqrt{3}},-\frac{1}{\sqrt{3}}). (of course, -\mathbb{v} is another unit vector but this vector will give us the same directional derivative up to a sign). So, we have
\frac{\partial f}{\partial x}=5x^4yz^4 + \frac{\sin(yz)}{x}
\frac{\partial f}{\partial y}=x^5z^4 + z\log(x)\cos(yz)
\frac{\partial f}{\partial z}= 4x^5yz^3 + y\log(x)\cos(yz)
So
D_\mathbb{v} f = \frac{1}{\sqrt{3}}(5x^4yz^4 + \frac{\sin(yz)}{x})+\frac{1}{\sqrt{3}}(x^5z^4 + z\log(x)\cos(yz)) -\frac{1}{\sqrt{3}}(4x^5yz^3 + y\log(x)\cos(yz))