BBahmni 한국어 매뉴얼검색
한국어 번역 완료
한국어English

Linux commands and utilities

This is a list of common CentOS Linux commands and utilities a Bahmni implementer should know for daily system administration. There is plenty of materials online that would help you to master these commands and its various options. This list will only tell you what commands you should start looking up.

CommandDescriptionExampleRead More
lsList files in current directoryls -alhttp://www.tecmint.com/15-basic-ls-command-examples-in-linux/
touchCreates an empty file  
catShows the contents of a filecat hello.txt 
manShow help for a commandman cat 
chmodChange the file access permissions to give read/write/executepermissions to a file or fileschmod +x myscript.shhttps://en.wikipedia.org/wiki/Chmod
chownChange the file owner / group ownerchown bahmni:bahmni -R /var/www/http://www.linfo.org/chown.html
chgrpChange the group ownership  
grepFinds matching data in text inputs using regular expressionscat hello.txt | grep "bahmni"http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/
pwdShows the current directory path (pwd = present working directory)  
cdChange into the specified directorycd /home 
tailDisplay the last few contents of a text file. Useful for seeing log files.tail -f /var/log/openmrs/openmrs.loghttp://www.thegeekstuff.com/2009/08/10-awesome-examples-for-viewing-huge-log-files-in-unix/
cpCopies a file from one location to anothercp abc.txt /home 
mvMoves a file to another location. Also used for renaming a file.mb abc1.txt abc2.txt 
rmDelete a file or a directoryrm /tmp/hello 
mkdirCreate a new directorymkdir music 
findUsed for searching files matching a certain pattern.Can also be used to execute specific commands on files which match a certain patternfind -name "*.mp3"http://www.tecmint.com/35-practical-examples-of-linux-find-command/
ps -efPrint all currently running processes.ps -ef | grep javahttps://www.digitalocean.com/community/tutorials/how-to-use-ps-kill-and-nice-to-manage-processes-in-linux
dfPrint disk space usage (short for 'disk free')  
duPrint disk usage report for current directorydu -shhttp://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/
clearClear the screen  
tarFor creating or extracting tar files-xvf <filename.tar> extract tar file -cvf <filename.tar> compress files and folders -tvf archive.tar List all files in archive.tar verbosely.&nbsp;http://www.tecmint.com/18-tar-command-examples-in-linux/
yumManage installations of RPMs / softwares.yum install bahmni-emryum remove bahmni-emryum info bahmni-emrhttps://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-yum.html
killTerminate a process / Raise a Signalkill -9 <pid>https://www.maketecheasier.com/kill-command-in-linux/
ifconfigPrint network configuration / IP of the machine&nbsp;&nbsp;
scpSecure copy of files (over SSH port)scp -r foo john@remotehost:/tmphttp://www.hypexr.org/linux_scp_help.php
chkconfigUpdates and queries runlevel information for system services&nbsp;https://blog.sleeplessbeastie.eu/2012/07/07/centos-how-to-manage-system-services/
serviceProvide information on registered system services.service bahmni-emr statusservice bahmni-emr stopservice bahmni-emr starthttps://blog.sleeplessbeastie.eu/2012/07/07/centos-how-to-manage-system-services/
whoamiPrints the details of the current user&nbsp;&nbsp;
useraddAdd user to system&nbsp;http://www.liquidweb.com/kb/how-to-add-a-user-and-grant-root-privileges-on-centos-6-5/
passwdSet password of the user&nbsp;&nbsp;
sudoRun with root privilegesudo service bahmni-emr stophttps://www.garron.me/en/linux/visudo-command-sudoers-file-sudo-default-editor.html
sshSSH to a remote machinessh root@192.133.8.10http://support.suso.com/supki/SSH_Tutorial_for_Linux
pingCheck if a Ping message can be sent over a networkping www.google.com&nbsp;
crontabConfigure cron job (for scheduled tasks)crontab -Lhttps://www.pantz.org/software/cron/croninfo.html
mountMount a disk (partition) on a particular path&nbsp;&nbsp;
umountUn-mount a disk&nbsp;&nbsp;
viEditor for filesvi hello.txthttp://www.howtogeek.com/102468/a-beginners-guide-to-editing-text-files-with-vi/http://www.openvim.com/ (Online VIM tutorial)
iptablesFirewall on Linux&nbsp;https://wiki.centos.org/HowTos/Network/IPTables
historyList last / all executed commands&nbsp;http://www.tecmint.com/history-command-examples/
topshow processor and memory as being used and other information like running processestophttp://www.tecmint.com/12-top-command-examples-in-linux/Further reading : htop : http://www.tecmint.com/install-htop-linux-process-monitoring-for-rhel-centos-fedora/
freegives understanding of total available space of physical memory and swap memoryfree -mhttp://www.tecmint.com/check-memory-usage-in-linux/
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗