ha ha ha a security breach :
google blogger post title="Some root history" ~/.bash_history
python -v
python -V
python -v
exit
clear
deb http://deb.opera.com/opera/ stable non-free
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
deb http://deb.opera.com/opera/ stable non-free
apt-get update
apt-get install opera non-free
apt-get install opera
apt-get install flashplugin non-free
sudo apt-get install flashplugin-nonfree
clear
apt-get install vlc
clear
uname -a
vi LinuxCheatSheet.txt
less LinuxCheatSheet.txt
set
set echo PORTABLE *NIX CHEAT SHEET COPY PASTE AT YOUR COMMAND PROMPT
echo AND USE BY history | grep "a word"
echo how-to script --- script -a /export/home/yogeorgi/SCRIPTSLOGS/`date +%Y%m%d%H%M%S`_script.log
echo if the man is full of references to files --- man commandToFindHelpAbout | col -b >/var/man/mancommandToFindHelpAbout.man.txt
vim .bashrc
echo´'
alias ls="ls -a -l -X -1 --color=tty"
alias dir="ls -ba"
alias cls="clear"
alias deltree="rm -r"
alias move="mv"
ls -al | more
'
echo take the last 5 commands for faster execution to the temp execution script --- tail -n 5 /root/.bash_history >> /var/run.sh
echo I saw the command cd /to/some/suching/dir/which/was/very/long/to/type so I redid it and saved my fingers --- '!345'
echo send that file to myself --- cat history.txt | mail -s "test file sending" -c mail1@com yordan.georgiev(boom)gmail.com
echo how-to display the history withouth the line numbers ... --- history | perl -i -pe 's/^([ ]*)([0-9]*)(.*)$/$3/gi'
echo how-to deal with command outputs --- command | filtercommand > command_output.txt 2>errors_from_command.txt
echo find the files in the /bin folder having the "trace" string in their name --- find /bin | grep "trace"
echo find all xml type of files and display only the rows having wordToFindInRow --- find . -name '*.xml' -exec cat {} \;| grep wordToFindInRow | less
set
set | less
clear
pwd
whoami
id
vi /etc/passwd
apt-get install LAMP
perl -V
l
cldear
clear
sudo aptitude install apache2 php5 apache2.2-common libapache2-mod-auth-mysql php5-mysql mysql-server
sudo vim /etc/apache2/ports.conf
sudo vi /etc/apache2/ports.conf
clear
mkdir ~/SCRIPTSLOGS
script -a ~/SCRIPTSLOGS/`date +%Y%m%d%H%M%S`_script.log
sudo aptitude install php5-gd
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/mysql restart
service mysql restart
clear
ps -ef | grep mysql
ps -ef | grep apache
service apache2 restart
sudo aptitude install phpmyadmin
ls -al
clear
vi /etc/apt/sources.list
sudo apt-get udpate
sudo apt-get update
clear
sudo apt-get install chromium-browser
gedit
history | script
history | grep script
script -a ~/SCRIPTSLOGS/`date +%Y%m%d%H%M%S`_script.log
sudo script -a ~/SCRIPTSLOGS/`date +%Y%m%d%H%M%S`_script.log
ls- al /home/userName
ls -al /home/userName
ls -al /home
chown -R username:username /home/userName
sudo chown -R username:username /home/userName
sudo chown -R username:username /home/username
id
hostname -i
history | sed 's/\s*[0-9]*\s*//'
history | less
cal
strace -c ls >/dev/null
top
ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS
ps -e -orss=,args= | sort -a -k1,1n | pr -TW$COLUMNS
sort --help
sort --help | less
ps -e -orss=,args= | sort -b -r -k1,1n | pr -TW$COLUMNS
clear
tcpdump not port 22
ip link show
df -k
history | grep chro
history | grep apt
halt
sudo apt-get install skype
sudo apt-get install skype non-free
sudo apt-get update && sudo apt-get install skype
skype
clear
halt
sudo halt
vi /etc/apt/sources.list
sudo apt-get update
sudo aptitude install oracle-xe oracle-xe-client
perl -V
sudo apt-get install python-gdata
sudo dpkg -i http://googlecl.googlecode.com/files/googlecl_0.9.5-1_all.d
sudo dpkg -i http://googlecl.googlecode.com/files/googlecl_0.9.8_all.d
sudo dpkg -i http://googlecl.googlecode.com/files/googlecl_0.9.
sudo apt-get install python-gdata
sudo dpkg -i http://googlecl.googlecode.com/files/googlecl_0.9.5-1_all.deb
sudo dpkg -i http://googlecl.googlecode.com/files/*
sudo dpkg -i /home/username/Documents/A_DOWNLOADS/GOOGLE/googlec
sudo dpkg -i /home/username/Documents/A_DOWNLOADS/GOOGLE/googlec/
ls -al /home/username/Documents/A_DOWNLOADS/GOOGLE/googlec/
ls -al /home/username/Documents/A_DOWNLOADS/GOOGLE/
cd /home/username/Documents/A_DOWNLOADS/GOOGLE/googlec/
cd /home/username/Documents/A_DOWNLOADS/GOOGLE/
googlecl picasa list
google calendar add "todo"
googlecl calendar add "todo"
googlecl
python googlecl
sudo dpkg -i /home/username/Documents/A_DOWNLOADS/GOOGLE/googlecl/googlecl_0.9.8-1_all.deb
cd ~/
ls -al
clear
cd Pictures/
google picasa list
cal
time
gettime
utc
time
clear
google picasa list
exit
google picasa list title,url-direct --query "A tag"
exit
wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -
clear
history | grep vi
vi /etc/apt/sources.list
sudo apt-get update
sudo apt-get install sun-java5-bin
sudo apt-get install sun-java6-bin
sudo /etc/init.d/oracle-xe configure
google docs list title,url-direct --delimiter ": " # list docs
clear
google docs list title,url-direct --delimiter ": " # list docs
google picasa list title,url-direct --query "A tag"
google picasa list title,url-direct
google
google --help
google --help | less
google picasa list
history
clear
history
exit
sudo wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -
sudo bash
exit
sudo bash
cd /home/username/Pictures/
google picasa list title,url-direct --query "A tag"
sudo google picasa list title,url-direct --query "A tag"
sudo bash
id
history
9,999
clear
exit
history | grep apt
history | grep apt| sed s/\s+[0-9]*//
history | grep apt| sed s/^\s+[0-9]*//
history
less /home/username/.bash_history
ls -al /home/username/Pictures/
ls -al /home/username/Pictures/ | less
apt-get install picasa
apt-get install picasa non-free
google --help | less
history
google picasa list
clear
google blogger post ~/bash_history --title history
google blogger post ~/.bash_history --title history
less command_output.txt
google picasa list url-direct
clear
echo echo all my picasa pics url into a file
google picasa list url-direct > /home/username/Pictures/MyPicasaPics.txt
echo when was the last reboot
last reboot
echo Show amount of (remaining) RAM (-m displays in MB)
free -m
cd /home/username/Pictures/
ls -al
MyPicasaPics.txt .
MyPicasaPics.txt
gedit MyPicasaPics.txt
for ii in ('less MyPicasaPics.txt') do echo $ii ;
for line in $ (cat file.txt) do echo "$ line" done
for line in $(cat file.txt) do echo "$ line" done; ;
for line in $ (cat file.txt) do echo "$ line" done;
for line in $(cat MyPicasaPics.txt) do echo "$line" ; done ;
for line in $(cat MyPicasaPics.txt) do echo "$line" done ; ;
for line in $(cat MyPicasaPics.txt) do e
for line in $(cat MyPicasaPics.txt) do ; echo "$line"
for line in $(cat MyPicasaPics.txt) do ; echo "$line" ; done ;
for line in $(cat MyPicasaPics.txt) do echo "$line" ; done ;
for line in $(cat MyPicasaPics.txt) ; do echo "$line" ; done ;
echo foreach line of file print file line
for line in $(cat MyPicasaPics.txt) ; do echo "$line" ; done ;
clear
echo for each url in my PicasaPics do download with wget from the url
for line in $(cat MyPicasaPics.txt) ; do wget "$line" ; done ;
clear
ls -1R | grep .*.jpg | wc -lå
ls -1R | grep .*.jpg | wc -l
echo how-to count the number of files in directory of a specific type
ls -1R | grep .*.jpg | wc -l
history | google blogger post --title "History"
google blogger post --title "History" ~/.bash_history
reboot
history
sudo bash
history | grep apt | sed 's/\s*[0-9]*\s*//'
history | grep apt | sed 's/\s*[0-9]*\s*//' > /home/username/Documents/GrepApt.txt
google blogger post /home/username/Documents/GrepApt.txt
sudo google blogger post /home/username/Documents/GrepApt.txt
sudo bash
halt
sudo halt
exit
apt-get install vim-gnome
vim SedCheatSheet.txt
google blogger post --title "Sed Cheat Sheet (revised )" ~/Documents/SedCheatSheet.txt
clear
sqlplus
history | grep date
echo %Y%m%d_%H%M%S
echo %Y%m%d%_H%M%S
echo `date %Y%m%d%_H%M%S`
echo 'date %Y%m%d%_H%M%S'
echo `date %Y%m%d%_H%M%S`
echo `date +%Y%m%d%_H%M%S`
echo `date +%Y%m%d_%H%M%S`
sudo gedit ~/.config/chromium/Default/Preferences
exit
cd Documents/
ls -al
vim SedCheatSheet.txt
sudo bash
exit
history
history | grep apt
apt-get update all
apt-get update
vi /etc/apt/sources.list
google blogger post --title "Ubuntu apt-get sources config " /etc/apt/sources.list
clear
vi /etc/apt/sources.list
clear
echo `date +%Y%m%d%H%M%S`.bak
echo
echo GetNiceTime nice time `date +%Y%m%d_%H%M%S`
apt-get install sqlplus
find / -name "*oracle*" | less
halt
sudo bash
find / -name "demo/schema/human_resources
find / -name "*demo/schema/human_resources*" 2> /dev/null | less
find / -name "*demo/schema/human_resources*" | less 2> /dev/null
find / -name "*oracle*" | less 2> /dev/null
find / -name "*schema*" | less 2> /dev/null
cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/demo/schema
ls -al
vi human_resources/
./human_resources/
cd human_resources/
ls -al
sqlplus
set
set | less
pushd
push
history | grep cd
pwd
cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/demo/schema/human_resources
vi /home/username/.profile
find / -name "*sqlplus" | less
vi /home/username/.profile
find / -name "*sqlplus" | less
vi /home/username/.profile
exit
sudo bash
exit
set | grep '/bin/'
set | less
history | grep vi
vi /home/username/.profile
vi /home/username/.bashrc
exit
set | less
sudo bash
export PATH=$PATH:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/
echo $PATH
sqlplus
clear
pwd
mkdir scripts
cd scripts/
cd
pwd
cd scripts/
mkdir ora_sh
cd ora_sh/
vi test.sh
ls -al
chmod 755 test.sh
ls -al
./test.sh
vi test.sh
./test.sh
history | tail
history
vi test.sh
cd /home/username/scripts/ora_sh/
clear
./test.sh
vi test.sh
./test.sh
halt
sudo halt
vi
clear
ls -al
exit
apt-get istall eclipse
apt-get install eclipse
eclipse
exit
cd /home/username/Downloads/PadWalker-1.92/
ls -al
perl Makefile.PL
make
make test
make install
clear
history | less
sudo apt-get install compiz compizconfig-settings-manager
clear
ls -al
history
halt
eclipse
apt-get install eclipse
sudo bash
id
clear
cd /home/username/workspace/
ls -al
cd FirstPerlProject
ls -al
eclipse .projecte
eclipse .project
perl
perl -e 'ppm install PadWalker'
stall PadWalker'
sudo bash
ifconfig /all
ifconfig
clear
ifconfig | less
apt-get install qt
apt-get install libqt3
cd /home/username/Documents/A_DOWNLOADS/Perl/
ls -al
tar zxvf Komodo-Edit-5.2.4-4343-linux-libcpp6-x86_64.tar.gz
cd Komodo-Edit-5.2.4-4343-linux-libcpp6-x86_64/
sh install.sh
vi install.sh
./install.sh
vi install.
vim install.sh
./install.sh -h
./install.sh
vi install.sh
top
exig
exit
cd /home/username/Documents/A_DOWNLOADS/Perl
pwd
tar xgzv Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86.tar.gz
tar -xgzv Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86.tar.gz
tar zxvf Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86.tar.gz
cd Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86/
./install.sh
vi /home/username/.bashrc
export PATH="/home/username/Komodo-Edit-6/bin:$PATH"
komodo
exit
chown -R username:username
chown -R username:usename *
chown -R username *
ls -al
rm -Rf Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86
ls -al
exit
cd /opt/procs/perl/
clear
perl -wc FirstModule.pm
cd /root
mkdir A_DOWNLOADS
mv Komodo-IDE-5.2.4-37659-linux-libcpp6-x86.tar.gz A_DOWNLOADS/
cd A_DOWNLOADS/
ls -al
mkdir Perl
mv Komodo-IDE-5.2.4-37659-linux-libcpp6-x86.tar.gz Perl/
cd Perl/
cd P
clear
tar -xvfz Komodo-IDE-5.2.4-37659-linux-libcpp6-x86.tar.gz
tar xvfz Komodo-IDE-5.2.4-37659-linux-libcpp6-x86.tar.gz
cd Komodo-IDE-5.2.4-37659-linux-libcpp6-x86/
./install.sh
vi /home/username/.bashrc
komodo
cd /home/username/Komodo-IDE-5/bin
ls -al
komodo
cd komodo
komodo
exit
tar zxvf
cd /home/username/Documents/A_DOWNLOADS/Perl/
rm *
rmdir Komodo-Edit-5.2.4-4343-linux-libcpp6-x86_64/
rmdir -f Komodo-Edit-5.2.4-4343-linux-libcpp6-x86_64/
rmdir --help
rm --help
rm -rf *
sudo rm -rf *
ls -al
clear
echo wpd
echo `pwd`
sudo bash
id
vi ~./bashrc
vi /home/username/.bashrc
komodo
vi /home/username/.bashrc
clear
ls -al
tar xfvz Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86
tar xfvz Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86.tar.gz
cd Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86/
./install.sh
cd ..
ls -al
sudo bash
clear
tar xzvf Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86.tar.gz
cd Komodo-Edit-6.0.0-beta2-5550-linux-libcpp6-x86/
./install.sh
/home/username/Komodo-Edit-6/bin/komodo
chown -R username /home/username/Komodo-Edit-6/
komodo
/home/username/Komodo-Edit-6/bin/komodo
chown -R /home/username/.komodoedit/
chown -R username /home/username/.komodoedit/
/home/username/Komodo-Edit-6/bin/komodo
sudo /home/username/Komodo-Edit-6/bin/komodo
sudo bash
cd /home/username/Documents/A_DOWNLOADS/Perl/
tar xvfz Komodo-IDE-5.2.4-37659-linux-libcpp6-x86.tar.gz
ls -al
cd Komodo-IDE-5.2.4-37659-linux-libcpp6-x86/
./install.sh
rm -fR /home/username/Komodo-IDE-5/
sudo rm -fR /home/username/Komodo-IDE-5/
./install.sh
komodo
vi ~/.bashrc
cd /home/username/Komodo-IDE-5/bin
ls -al
komodo
ls -al
komodo
exit
halt
komodo
ppm install Text::CSV_XS
perl
perl -e 'ppm install Text::CSV_XS'
perl -e 'ppm install Text::CSV_XS; '
find / -name "*perl*"
find / -name "*perl*" 2>/dev/null
find / -name "*perl*" 2>/dev/null | less
find / -name "*ppm*" 2>/dev/null | less
find / -name "*perl*" 2>/dev/null | less
clear
cpan
sudo bash
apt-get update
apt-get install all
apt-get help
apt-get upgrade help
uname -a
apt-get install opera
apt-get install firefox
apt-get install chromium
ps -ef | less
ps | grep ultra
ps | grep Ultra
ps | grep username
ps -efa
ps --help
ps -efo username
ps -efu
ps -efwu
ps -efw
ps -efw | less
ps -efw | grep usr | less
ps -efw | grep usr | grep username | less
sudo halt
ls / -al
ls /var/log
ls /var/log -al
tail -200 /var/log -al
tail --help
tail --help | less
clear
tail -n 200 /var/log/syslog
tail -n 200 /var/log/syslog | less
clear
tail -n 200 /var/log/syslog.1 | less
grep -r /var/log error
grep -h | less
grep --help | less
grep -r error /var/log
grep -r error /var/log | less
grep -r error /var/log | grep dbus
clear
ls / -al
ls /opt -al
ls /bin -al
ls /bin -al | less
find / -name "*vi*" | less
find / -name "*bin*vi*" | less
man sed
clear
reboot
sudo bash
set
set | less
clear
apt-get install php5-gd
mkdir /home/username/Downloads/Drupal
mv /home/username/Downloads/drupal-7.0-alpha6.tar.gz /home/username/Downloads/Drupal/
cd /home/username/Downloads/Drupal/
clear
ls -al
exit
pwd
cd Downloads/Drupal/
tar xgfz drupal-7.0-alpha6.tar.gz
tar xgzf drupal-7.0-alpha6.tar.gz
tar --help
tar --help | less
tar xvzf drupal-7.0-alpha6.tar.gz
ls -al
sudo chown -Rv username /home/username/Downloads/
cd Drupal/
tar xzfv drupal-7.0-alpha6.tar.gz
find . -name README.txt
halt
sudo halt
ifconfig | less
reboot
sudo bash
sudo bash -
id
set
set | less
clear
ls -al
mkdir tmp
cd tmp/
ls -al
for
for $number in 1 2 3 4 5 do ; echo $number > $number.txt
for $number in 1 2 3 4 5 do ; echo $number > $number.txt ; done
for $number in 1 2 3 4 5 do echo $number > $number.txt ; done
for $number in 1 2 3 4 5 do echo "$number" > "$number".txt ; done
for number in 1 2 3 4 5 do echo "$number" > "$number".txt ; done
for number in 1 2 3 4 5 do ; echo "$number" > "$number".txt ; done
for i in 1 2 3 4 5 do ; echo "$i" > "$i".txt ; done
for i in 1 2 3 4 5 do ; echo "$i" > "$i".txt ; done ;
for i in 1 2 3 4 5 do echo "$i" > "$i".txt ; done ;
for i in 1 2 3 4 5 do echo $i > $i.txt ; done ;
for i in 1 2 3 4 5 do echo $i ; done ;
for i in 1 2 3 4 5 do echo $i done ; for i in 1 2 3 4 5 do echo $i done
for i in 1 2 3 4 5 do ; echo $i done ; for i in 1 2 3 4 5 do echo $i done
for i in 1 2 3 4 5 do ; echo $i done ;
for i in 1 2 3 4 5 do echo $i done ;
for i in 1 2 3 4 5 do echo $i done
for i in 1 2 .. N ; do echo $i; done
for i in 1 2 3 4 5 ; do echo $i; done
for i in 1 2 3 4 5 ; do echo $i >$i.txt ; done
ls -al
vi 1.txt
for file in *.txt echo $file; done ;
for file in *.txt echo $file; done
for file in *.txt ; do echo $file; done
for i in 1 2 3 4 5 ; do echo $i >$i.log ; done
ls -al
for file in *.txt *.log ; do echo $file; done
for file in *.txt *.log ; do cp -fvfor VARIABLE in 1 2 3 4 5 .. N $file; done
do
command1
command2
commandN
cp --help
cp --help | less
clear
for file in *.txt *.log ; do cp -fv $file $file.bak ; done
ls -al
ls -al | sort
ls -al | sort +5
clear
find `pwd` | xargs echo
find `pwd` | xargs cp -v
find `pwd` -exec for VARIABLE in 1 2 3 4 5 .. N
command1
command2
commandN
find `pwd` -exec echo {}
find `pwd` -exec echo {} \;
find `pwd` -exec cp {} '{}'.bak \;
ls -al
find `pwd` -name "*.bak.bak" -exec rm {} \;
ls -al
find `pwd` -name "*.log.bak" -exec rm {} \;
ls -al
find `pwd` -name "*.txt.bak" -exec rm {} \;
find `pwd` -name "*.txt" -exec cp {} '{}'.bak \;
ls -al
history | grep find
clear
apt-get install glipper~
cd /home/username/.opera/temporary_downloads/glipper/
clear
./configure --prefix=/usr --with-gconf-schema-file-dir=/usr/share/gconf/schemas
cd glipper-1.0/
./configure --prefix=/usr --with-gconf-schema-file-dir=/usr/share/gconf/schemas
sudo aptitude install python-dev
./configure --prefix=/usr --with-gconf-schema-file-dir=/usr/share/gconf/schemas
apt-get install gtk+-2.0
apt-get install gtk
apt-get install gtk+
apt-get install gtk+-2.0
apt-get install xclip
xclip
xclip --help
apt-get install glipper
glipper
vi ~./glipper
vi /home/username/.glipper/
cd /home/username/.glipper/
clear
ls -al
vi history
clear
halt
ls -al
mkdir tpm
mkdir tmp
cd tmp
ls -al
for i in *.txt do echo $i done ; ;
for i in *.txt ; do echo $i done ; ;
for i in *.txt do echo $i done ; ;
for i in *.txt; do echo $i done ; ;
for i in *.txt do; echo $i done ; ;
history
ls /boot
find / -name "*menu.lst" 2>/dev/null | less
vi /usr/share/doc/memtest86+/examples/grub-menu.lst
sudo bash -
su -
cd /boot
ls -al
cd grub
ls -al
ls -al me*
cd /etc/grub.d
ls -al
vi README
vi 40_custom
gksu gedit /boot/grub/menu.lst
vi /boot/grub/menu.lst
update-grub
sudo su -
sudo bash
sudo /etc/grub.d/30_os-prober
gedit /etc/grub.d/30_os-prober
vi /etc/grub.d/10_linux
sudo update-grub
find / -name "*grub.cfg" 2>/dev/null | less
vi /boot/grub/grub.cfg
gedit /boot/grub/grub.cfg
grub-install -v
vi /etc/grub.d/00_header
vi /etc/grub.d/10_linux
clear
vi /etc/default/grub
history
update-grub
reboot
exit
su -
sudo bash
sudo su -
clear
uptime
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
2 weeks ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!