If we need to execute long command line or need to run multiple command line all at once we can use use text editor.
ctrl + x + eThis will open up text editor, we can create long command and multiple line for each command, save and exit.
ctrl + o
ctrl + xIf we need area which can write and read super fast we can take some resouces from RAM and mount as diskspace here.
mdkir -p /mnt/ram
mount -t tmpfs tmpfs /mnt/ram -o size=1024MFix the last command we run inside of text editor if we made any mistake with this command.
fcThis will open up text editor with the last command we run inside of this and we can edit the command from here.
We can use network from network ssh with our local environment. The network will went thru the ssh machine and pass to the local machine.
The command format is local_port:hostname:remote_port for example:
ssh -L 3337:127.0.0.1:6379 [email protected] -NMeaning the traffic for the local network on the port 3337 will pass thru the remote machine host [email protected]:6379
Then we use the port using this commmand:
redis-cli -p 3337We can creating variation of folder and subfolder under the subfolder using one simple command.
mkdir {sub1, sub2}/{sub1, sub2, sub3}The command will create folder path sub1/sub1, sub1/sub2, sub1/sub3, sub2/sub1, sub2/sub2, sub3/sub3.
The command is the combination of disown command and exit terminal command. We disown any running process and exit the terminal leaving the running process continue executing.
disown -a && exit