Post

THM: Linux Commands

image DisroWatch

First release of Linux O/S

1991

Linux Connands

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
echo 
# Outkput any text 
echo ""Hello"
> Hello

whoami
# Find out current logged in user
whoami
> admin

ls
# List current Directory
# options:
#
---
-: A regular file.
b: A block special file.
c: A character special file.
d: A directory.
l: A symbolic link.
n: A network file.
p: A named pipe.
s: A socket
---

ls -l -a
ls -l -R

To sort by file size, use the -S (sort by file size) option.
ls -l -h -S

>  
# Replace the content of the file

>> 
# Append the output to the end of the content 

&
# 

&&
cat
# Is short for "Concatenate" 
# Output the contents of files 

pwd
# print working directory

grep
echo

cd

This post is licensed under CC BY 4.0 by the author.