apt-get -f upgrade
apt-get update
dpkg -i bla bla bla
http://www.thegeekstuff.com/2009/04/vi-vim-editor-search-and-replace-examples/
http://www.tecmint.com/wc-command-examples/
http://www.thegeekstuff.com/2012/10/15-linux-split-and-join-command-examples-to-manage-large-files/
http://www.livefirelabs.com/unix_commands/5-unix-diff-command-examples-of-how-to-compare-two-text-files.htm
http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
https://www.cyberciti.biz/tips/howto-keep-file-safe-from-overwriting.html
21 Kasım 2016 Pazartesi
19 Kasım 2016 Cumartesi
Creating group, giving sudo privileges and adding user to the group
Step 1: Login to root account
..$ su
Step 2: Adding user
..# useradd -m frank
Step 3: Creating group
..# groupadd rangers
Step 4: Edit sudoers and add rangers into
..# vim /etc/sudoers
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
%rangers ALL=(ALL:ALL) ALL
..$ su
Step 2: Adding user
..# useradd -m frank
Step 3: Creating group
..# groupadd rangers
Step 4: Edit sudoers and add rangers into
..# vim /etc/sudoers
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
%rangers ALL=(ALL:ALL) ALL
save and exit
Step 5: Adding frank to rangers
..# usermod -a -G rangers frank
Finished.
Now you have a user frank in the rangers group, which was added to sudoers file.
You should able to use sudo while you are frank.
locate command
Before using locate command, you should update db
..$ sudo updatedb
then you can use locate.
..$ locate mypicture
..$ sudo updatedb
then you can use locate.
..$ locate mypicture
18 Kasım 2016 Cuma
Fast Search
There are couple of ways to make searching.
One of them:
ls | grep
..$ ls | grep dir
workingdir
direct
dire
It shows us anything contains dir.
note:
cat /etc/issue
shows you to which os currently you have.
Kaydol:
Kayıtlar (Atom)