Tags » Ubuntu/Linux

Linux/Ubuntu: How to use grep and find command

How to use grep to find text including sub directories:
grep -rl {yoursearchstring} {pathtosearch} e.g.,

$ grep -rl "hello" /var/
/var/lib/dpkg/status-old
/var/lib/dpkg/status
/var/log/test.log:1:hello world

where: 200 more words

How to install Firefox in Ubuntu

How to install Firefox 55 on Linux Mint, Ubuntu, Debian, CentOS, Fedora…
… or any other Linux distribution.

This red panda (Firefox) has not much to do with installing Firefox on Linux… 1,056 more words

Target filesystem doesn' t have requested /sbin/init No init found. Try passing init = bootarg.

mount: mounting /dev/loop0/ on /root failed : Invalid argument
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory…
219 more words

Linux common problems and its solutions

Problem:
$ apt-get install vim
E: Unable to locate package vim
Solution:

$ apt-get update && apt-get install apt-file
$ apt-file update && apt-get install vim
# Note: for non-root user, just use sudo apt-get ...