1 . >> operator [redirect all output to file]
#./a.out >> op.txt
2. | tee [redirect all output to file & Console both]
#./a.out | tee op.txt
|
Tutorials | Tips and Trips | Engineering Concepts | Recent Technology | Invention and Innovation | and much more
Friday, March 1, 2013
How Redirect Console / Terminal output to File and Console Both in Linux
How to reactivate Windows 7
Steps:
1. open command prompt (run as administrator)
2. type: slmgr -rearm (press enter)
3. reboot system
How to install grub for Ubuntu
LIVE BOOT with ubuntu 64 BIT only
lauch Gparted check ext4 parition of ubuntu note down (e.g. /dev/sda7 then let x=a and y=7)
First, open the Terminal and execute below commands
lauch Gparted check ext4 parition of ubuntu note down (e.g. /dev/sda7 then let x=a and y=7)
First, open the Terminal and execute below commands
Mount partitionsudo mount /dev/sdXY /mntsudo mount --bind /dev /mnt/devsudo mount --bind /dev/pts /mnt/dev/ptssudo mount --bind /proc /mnt/procsudo mount --bind /sys /mnt/syssudo chroot /mnt
Install Grub
grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub
Now unmount all
exitsudo umount /mnt/dev
sudo umount /mnt/dev/pts
sudo umount /mnt/procsudo umount /mnt/syssudo umount /mntHow to change boot order Linux UBUNTU FEDORA CENTOS
STEPS:
- Note the serial number (x) of the desired default OS during grub loading start counting from zero (0).
- Edit /boot/grub/grub.conf
- change default value to x
- Save and reboot.
Command to check SSH LOG in LINUX UBUNTU
1. Open terminal type below command and hit enter.
last | head
Subscribe to:
Comments (Atom)