If you running foreground process and want that application switch to run as background process, what you needs to do is, press ctrl+z (Process will temporary stopped) then execute `bg`. This command will continue the final tasks in background. I have done this in ubuntu. (Not sure for another operating system).
ถ้าหากมี Process ที่สั่งทำงานอยู่ แต่ว่าต้องการที่จะเปลี่ยนให้โปรเซสนั้นๆย้ายไปทำงานในโหมด Background สิ่งที่จะต้องทำก็คือ กด Ctrl+z โปรแกรมจะหยุดทำงานชั่วคราว หลังจากนั้น สั่ง `bg` โปรแกรมจะเริ่มทำงานต่อในโหมด background.
Reference: Manage Jobs and Processes.
Sometime, you may want to transfer a lot of files from server to another server, you may use ftp client (command-line) to transfer. However, default ftp client is cannot transfer multiple file in multiple directory (yes, you can use `mget` command but you needs to create a directory at first). One solution that you can copy recursive from one to one is transfer a file by `wget` command.
- wget -r –passive-ftp ftp://username:password@ftp.yourhost.com/directory
This command will transfer some files to current local directory and also create subdirectory.
1. How to delete all .svn with only one command
- # find . -name ".svn" -exec rm -rf {} \;
2. SVN commit [Ref]
- If commit by enter no comments, it may show error message that some files will be ignore to add to repository. "This line, and those below, will be ignored".
- Try svn commit -m "commit message you want".
3. Subversion with Branch / Trunk [Ref]
4. SVN Client and Public/Private Key
- Use Pageant of Putty package
Final: Ubuntu Service command (Management) [Ref]
# update-rc.d SERVICE-NAME remove
OS: Ubuntu 6.06LTS, 7.04
time is a command available in linux which use to summarize resources that the focused process used. Sometime, it is use like a test tool to see what resource used when the process get things done such as cpu time, memory, context switch, cpu time (user mode), cpu time (system mode)
time เป็นคำสั่งที่มีมาอยู่ใน Linux ทุกตัว (เท่าที่ทราบ) ใช้เพื่อการตรวจสอบการใช้งานทรัพยากรของโปรเซสที่เราสนใจ ซึ่งหลายๆครั้ง เราใช้มันเหมือนเครื่องมือในการทดสอบประสิทธิภาพ ซึ่งให้ค่าออกมาเช่น cpu time หรือค่าจำนวน clock ของ cpu ที่มีการใช้งานจริง หรือ cpu time (user mode), cpu time (system mode)
When use time command, I don’t know why my time command cannot specific some parameters. Sometime it’s look like cannot use any parameters meanwhile man page show some of parameters. After I looking for information, I found nothing. No any pages descript about this problem. Do I really one person that silly? No, I won’t to be like that. I’m thinking for a bitt and I think that sudo command might help in this solution. Yes! it work! well done. All parameter can be use at this time.
ผมพยายามจะใช้คำสั่ง time บนลีนุกซ์มาสักพักแล้ว แต่ไม่รู้ทำไม Ubuntu ที่ผมติดตั้ง กลับกำหนดอาร์กิวเมนต์ให้กับคำสั่ง time ไม่ได้เลย ทั้งๆที่หน้า man page ก็มี parameter ต่างๆตามปกติ หาข้อมูลใน google ก็หาไม่เจอ อาจจะมีหน้าที่กล่าวถึง แต่เนื่องจากคำมันเป็นคำที่ basic มาก เลยหายากมากด้วย สุดท้าย ก็เลยมาลองนั่งคิดเอาเองว่า มันเกิดปัญหาอะไรขึ้นกับเรา หลังจากนั้น ไปสกิดใจนิดนึงว่า เออ เป็นไปได้ว่ามันจะใช้ privillage command ที่จะต้อง su เป็น root ก่อน ก็เลย จัดแจงลองดู แล้วก็พบว่า มันใช้งานได้จริงๆด้วย เย้! หลังจากนั่งลองกับ tcsh, csh อยู่ ซึ่งมันก็ไม่ได้เกี่ยวข้องเลยสักนิด
Command
- Format:
# sudo time <arguments> <command>
- Example:
# sudo time –verbose ls