How to check the current MongoDB version
Answer:
Simply type the following command in your MongoDB's shell
db.version()
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to check the current MongoDB version
Answer:
Simply type the following command in your MongoDB's shell
db.version()
Upgrade a single package in Ubuntu
Answer:
To upgrade a single package, first need to perform an update first.
# sudo apt-get update
Then use the install sub command to perform an upgrade, e.g. apache2
#sudo apt-get install apache2
How to diff two files side-by-side
Answer:
To diff two files side-by-side, you can try the -y argument.
# diff -y file1.txt file2.txt
How to search for tab characters in a file?
Answer:
The most intuitive way to search for tab characters in a file
# expand file.txt | diff - file.txt
Automatic code indentation using VIM
Answer:
To auto indent your source code, you can use the built-in feature of vim
1. First highlight the code block using the v and arrow keys
2. Press "=" button.
That's it.