Quantcast
Channel: NextGenUpdate
Viewing all articles
Browse latest Browse all 27691

Some Linux Commands

$
0
0
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
Code:

uname -a
Show distribution
Code:

head -n1 /etc/issue
Show mounted filesystems
Code:

mount
Show system date
Code:

date
Show uptime
Code:

uptime
Show your username
Code:

whoami
Show manual for command
Code:

man command
----------------

Directory Operations:

Show current directory
Code:

pwd
Make directory dir
Code:

mkdir dir
Change directory to dir
Code:

cd dir
Go up a directory
Code:

cd ..
List files
Code:

ls
----------------

LS Options:

Show all (including hidden)
Code:

ls -a
Recursive list
Code:

ls -R
Reverse order
Code:

ls -r
Sort by last modified
Code:

ls -t
Sort by file size
Code:

ls -S
Long listing format
Code:

ls -l
One file per line
Code:

ls -1
Comma-separated output
Code:

ls -m
Quoted output
Code:

ls -Q
----------------

File Permissions:

Change mode of file to 775
Code:

chmod 775 file
Recursively chmod folder to 600
Code:

chmod -R 600 folder
Change file owner to user and group to group
Code:

chown user:group file
----------------

That's all I will be posting. :p

Source - Linux Command Line Cheat Sheet by DaveChild - Cheatography.com

Viewing all articles
Browse latest Browse all 27691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>