To get directory size use next command
$ du directory
there is option "-h" to be human readable
$ du -h directory
source : http://www.codecoffee.com/tipsforlinux/articles/22.html
Well about this blog. There are many problem facing me every day in programming and linux and I search on the internet to find how to solve my problem.So I want to share my problems and solving of this problem here for me and for every one in the world. I hope to be useful for every one.
Monday, December 6, 2010
Sunday, December 5, 2010
How to run script or any command and logout and script still runnig
Our problem today is:
you have a remote server linux and you need to run command to restore database or run script which will take about 1 hour or more. you need to close your session and command still running because if you logout your command will stop but we have a solution today
to run the script and still running after logout by
nohup your_commadn &
don't forget & because it put your command in background
source : http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html
enjoy your time
;)
you have a remote server linux and you need to run command to restore database or run script which will take about 1 hour or more. you need to close your session and command still running because if you logout your command will stop but we have a solution today
to run the script and still running after logout by
nohup your_commadn &
don't forget & because it put your command in background
source : http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html
enjoy your time
;)
Friday, December 3, 2010
Idea and reason of this blog
Hi all,
How are you ? I hope you fine.Well about this blog. There are many problem facing me every day in programming and linux and I search on the internet to find how to solve my problem.So I want to share my problems and solving of this problem here for me and for every one in the world. I hope to be useful for every one.
BYE
How are you ? I hope you fine.Well about this blog. There are many problem facing me every day in programming and linux and I search on the internet to find how to solve my problem.So I want to share my problems and solving of this problem here for me and for every one in the world. I hope to be useful for every one.
BYE
Show certian line in document using command
If you have a large document and you want to see only one line in documet and you know the line number
you can use this command
sed -n "linenumber p" file.txt
source :
http://www.linuxquestions.org/questions/linux-newbie-8/display-line-number-n-from-a-file-273780/
thanks
you can use this command
sed -n "linenumber p" file.txt
source :
http://www.linuxquestions.org/questions/linux-newbie-8/display-line-number-n-from-a-file-273780/
thanks
Subscribe to:
Posts (Atom)