Difference between revisions of "Head (command)"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{lowercase}}
  
 +
head -10 /dev/[[urandom]] | [[sha512sum]] | cut -b 1-30
  
  head -10 /dev/[[urandom]] | [[sha512sum]] | cut -b 1-30
+
  head -c 16 [[/dev/urandom]] | [[od]] -An -t x | [[tr]] -d ' '
  
 
  head -c 10 /path/to/file
 
  head -c 10 /path/to/file
Line 7: Line 9:
 
  [[curl -Is]] https://yourdomain.com/ | head -1
 
  [[curl -Is]] https://yourdomain.com/ | head -1
  
 +
[[du -hs]] /var/lib/* | sort --human-numeric-sort -rk1 | head -10
 +
 +
[[head -c]] 1G </dev/urandom >myfile
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[tail]]</code>
 
* <code>[[tail]]</code>
* [[fallocate]]
+
* [[Remove first line]]: <code>[[tail -n +2]]</code>
 +
* <code>[[fallocate]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 17:38, 14 December 2023

head -10 /dev/urandom | sha512sum | cut -b 1-30
head -c 16 /dev/urandom | od -An -t x | tr -d ' '
head -c 10 /path/to/file
curl -Is https://yourdomain.com/ | head -1
du -hs /var/lib/* | sort --human-numeric-sort -rk1 | head -10
head -c 1G </dev/urandom >myfile

Related terms[edit]

See also[edit]

Advertising: