I'm just sharing some Linux commands for the command line. Not sure who on here would find these useful, but anywho.
I'll start with a few bash commands:
Show system and kernel
Show distribution
Show mounted filesystems
Show system date
Show uptime
Show your username
Show manual for command
----------------
Directory Operations:
Show current directory
Make directory dir
Change directory to dir
Go up a directory
List files
----------------
LS Options:
Show all (including hidden)
Recursive list
Reverse order
Sort by last modified
Sort by file size
Long listing format
One file per line
Comma-separated output
Quoted output
----------------
File Permissions:
Change mode of file to 775
Recursively chmod folder to 600
Change file owner to user and group to group
----------------
That's all I will be posting. :p
Source - Linux Command Line Cheat Sheet by DaveChild - Cheatography.com
I'll start with a few bash commands:
Show system and kernel
Code:
uname -a
Code:
head -n1 /etc/issue
Code:
mount
Code:
date
Code:
uptime
Code:
whoami
Code:
man command
Directory Operations:
Show current directory
Code:
pwd
Code:
mkdir dir
Code:
cd dir
Code:
cd ..
Code:
ls
LS Options:
Show all (including hidden)
Code:
ls -a
Code:
ls -R
Code:
ls -r
Code:
ls -t
Code:
ls -S
Code:
ls -l
Code:
ls -1
Code:
ls -m
Code:
ls -Q
File Permissions:
Change mode of file to 775
Code:
chmod 775 file
Code:
chmod -R 600 folder
Code:
chown user:group file
That's all I will be posting. :p
Source - Linux Command Line Cheat Sheet by DaveChild - Cheatography.com