<commit_before>---
layout: post
title: "Basics Cheat Sheet"
date: 2017-09-05
---
<p>
Here is a formatted list of basic commands. I used these as I was learning how to get my way around and added to the list as I learned new things. Writing them down helped me remember the syntax.
</p>
<h3> Get Help … and other info</h3>
<ul>
<strong>
	<li><code>C:\> <command> /? </code></li>
	<li><code>root@kl~# <command> -h </code></li>
	<li><code>root@kl~# <command> --help </code></li>
	<li><code>root@kl~# man <command> </code></li>
	<li><code>root@kl~# apropos </code></li>
	<li><code>root@kl~# history </code></li>
	<li><code>root@kl~# hostname</code></li>
	<li><code>root@kl~# sudo </code></li>
	<li><code>root@kl~# whoami </code></li>
</strong>
		<ul>
		<li>(print current user id and name)</li>	
		</ul>
<strong>
	<li><code>root@kl~# date </code></li> 
	<li><code>C:\>  chdir </code></li>
</strong>
		<ul>
		<li>(displays location)</li>
		</ul>
<strong>
	<li><code>root@kl~# pwd </code></li>
</strong>
		<ul>
		<li>(displays location)</li>
		</ul>
</ul>
###Processes and Things
root@kl~# jobs 
(list cronjobs)
root@kl~# kill 
(stop processes)
root@kl~# pkill 
(stop processes)
root@kl~# ps –aef 
(list processes status)
C:\ tasklist
Files
root@kl~# cp <src> <dst> (copy)
C:\> copy <src> <dst>
root@kl~# clear<commit_msg>Update 2017-09-05-Basics-Sheet.md<commit_after>---
layout: post
title: "Basics Cheat Sheet"
date: 2017-09-05
---
<p>
Here is a formatted list of basic commands. I used these as I was learning how to get my way around and added to the list as I learned new things. Writing them down helped me remember the syntax.
</p>
<h6> Get Help … and other info</h6>
<ul>
<strong>
	<li><code>C:\> <command> /? </code></li>
	<li><code>root@kl~# <command> -h </code></li>
	<li><code>root@kl~# <command> --help </code></li>
	<li><code>root@kl~# man <command> </code></li>
	<li><code>root@kl~# apropos </code></li>
	<li><code>root@kl~# history </code></li>
	<li><code>root@kl~# hostname</code></li>
	<li><code>root@kl~# sudo </code></li>
	<li><code>root@kl~# whoami </code></li>
</strong>
		<ul>
		<li>(print current user id and name)</li>	
		</ul>
<strong>
	<li><code>root@kl~# date </code></li> 
	<li><code>C:\>  chdir </code></li>
</strong>
		<ul>
		<li>(displays location)</li>
		</ul>
<strong>
	<li><code>root@kl~# pwd </code></li>
</strong>
		<ul>
		<li>(displays location)</li>
		</ul>
</ul>
<h6>Processes and Things</h6>
<ul>
	<li><code>root@kl~# jobs </li></code> 
		<ul>
		<li>(list cronjobs)<li>
		</ul>
	<li><code>root@kl~# kill </li></code>
		<ul>
		<li>(stop processes)<li>
		</ul>
	<li><code>root@kl~# pkill </li></code>
		<ul>
		<li>(stop processes)<li>
		</ul>
	<li><code> root@kl~# ps –aef </li></code>
		<ul>
		(list processes status)
		</ul>
<li><code>C:\ tasklist </li></code>

<h6>Files</h6>
root@kl~# cp <src> <dst> (copy)
C:\> copy <src> <dst>
root@kl~# clear
{'fraction_non_alphanumeric': 0.24149895905621097, 'fraction_numerical': 0.011103400416377515, 'mean_word_length': 4.166666666666667, 'pattern_counts': {'":': 0, '<': 202, '<?xml version=': 0, '>': 208, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1665079', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1210, 'n_words': 323}