You may be intersted in following articles.
Energy on CentOS 7 and login to the system
tac
Utilization
- To view the contents of file in reverse order
Syntax
- tac file-name
- tac > file-name
- tac >> file-name
| (Pipeline)
Utilization
- To redirect the output of 1 command as enter to subsequent command
Syntax
- commad1 | command2
- ls -l | wc -l
- ls -l /and many others | much less
grep
Utilization
- To matching sample
- To go looking the given sample in a file
Syntax
- grep sample file-name
- grep sample file-name1 file-name2
- cat file-name | grep sample
Choices
- grep -i (To disregard case sensitivity)
- grep –coloration (To spotlight the matching sample)
tr
Utilization
- To translate the contents of file from decrease case to higher and vise versa
Syntax
- tr ‘a-z’ ‘A-Z’ < file-name
- cat file-name | tr ‘a-z’ ‘A-Z’
- cat file-name | tr ‘a-z’ ‘A-Z’ > new-file
hostnamectl
Utilization
- To question and alter the system hostname and associated settings
Syntax
- hostnamectl (To indicate hostname and associated data)
Choices
- set-hostname (To set hostname)
- set-location “Major Website – Rack No. 2” (To set system bodily location)
ps
Utilization
- To view at present operating processes
- ps is the scarcity for Course of Standing
Syntax
- ps aux (To view the all operating system processes)
- ps -u user-name (To view the operating processes of given person)
kill
Utilization
- To terminate a course of
- To ship a specified sign to the required course of
or course of teams - Usually used to kill a suspended, hanged or caught course of
Syntax
- kill process-id (If no sign is specified, the TERM sign is distributed, the default motion for this sign is to terminate the method)
alerts
- kill -9 process-id (to view contents of file with line numbers)
-9 sign doesn’t give the method an opportunity to cleanly:
1) shut down socket connections
2) clear up temp recordsdata
3) inform its youngsters that it’s going away
4) reset its terminal traits
discover
Utilization
- To go looking/discover the file or listing in present or given path
Syntax
- discover /path -name file-name
Choices
- discover /path -type f (to seek out recordsdata solely)
- discover /path -type f -mtime +30 (to checklist all recordsdata older than 30 days underneath /path listing)
du
Utilization
- To view the disk utilization by any file/listing
Synatx
Choices
- du -h (human readable kind)
- du -s (present solely a complete measurement )
free
Utilization
- To view the reminiscence standing
Syntax
Choices
- free -l (present reminiscence with element)
- free -m (present reminiscence statistics in MBs)
- free -g (present reminiscence statistics in GBs)
Hope you loved the article. Let’s transfer on to the following article.
<< How To Install Centos 7 in VirtualBox
How To Work With Linux Command Line Interface (CLI) Half 02 >>