-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathComandos_de_la_terminal%2Fhead.mw
97 lines (71 loc) · 2.75 KB
/
Comandos_de_la_terminal%2Fhead.mw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
__NOTOC__
* [[:#head | head]]
== head ==
<syntaxhighlight lang="bash">
head [OPTION]... [FILE]...
-c, --bytes=[-]K
print the first K bytes of each file; with the leading '-',
print all but the last K bytes of each file
-n, --lines=[-]K
print the first K lines instead of the first 10; with the lead‐
ing '-', print all but the last K lines of each file
-q, --quiet, --silent
never print headers giving file names
-v, --verbose
always print headers giving file names
--help display this help and exit
--version
output version information and exit
[rrc@pridd ~]$ head /var/www/almastock.asambiental.mx/index.php
<?php
require_once( "includes/AlmastockFunctions.inc.php" );
require_once( "includes/AlmastockConfig.php" );
require_once( "/etc/Almastock.inc.php" );
if( $_SERVER{'SERVER_PORT'} != 443 )
{
header( "Location: " . SSLURL );
exit();
}
[rrc@pridd ~]$ head -c 100 /var/www/almastock.asambiental.mx/index.php
<?php
require_once( "includes/AlmastockFunctions.inc.php" );
require_once( "includes/AlmastockCo[rrc@pridd ~]$
[rrc@pridd ~]$ head -c -11500 /var/www/almastock.asambiental.mx/index.php
<?php
require_once( "includes/AlmastockFunctions.inc.php" );
require_once( "includes/AlmastockConfig.php" );
require_once( "/etc/Almastock.inc.php" );
if( $_SERVER{'SERVER_PORT'} != 443 )
{
header( "Location: " . SSLURL
[rrc@pridd ~]$ head -n 7 /var/www/almastock.asambiental.mx/index.php
<?php
require_once( "includes/AlmastockFunctions.inc.php" );
require_once( "includes/AlmastockConfig.php" );
require_once( "/etc/Almastock.inc.php" );
if( $_SERVER{'SERVER_PORT'} != 443 )
{
[rrc@pridd ~]$ head -n -358 /var/www/almastock.asambiental.mx/index.php
<?php
require_once( "includes/AlmastockFunctions.inc.php" );
require_once( "includes/AlmastockConfig.php" );
require_once( "/etc/Almastock.inc.php" );
if( $_SERVER{'SERVER_PORT'} != 443 )
{
[rrc@pridd ~]$ head -vn -358 /var/www/almastock.asambiental.mx/index.php
==> /var/www/almastock.asambiental.mx/index.php <==
<?php
require_once( "includes/AlmastockFunctions.inc.php" );
require_once( "includes/AlmastockConfig.php" );
require_once( "/etc/Almastock.inc.php" );
if( $_SERVER{'SERVER_PORT'} != 443 )
{
[rrc@pridd ~]$ head --version
head (GNU coreutils) 8.20
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie and Jim Meyering.
</syntaxhighlight>
[[Category:Comandos de la terminal]]