THM: Linux Commands
First release of Linux O/S
1991
Linux Connands
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