Post: Some Linux Commands
09-04-2013, 04:56 AM #1
Dan
I'm a god.
(adsbygoogle = window.adsbygoogle || []).push({}); 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
    uname -a


Show distribution
    head -n1 /etc/issue


Show mounted filesystems
    mount


Show system date
    date


Show uptime
    uptime


Show your username
    whoami


Show manual for command
    man [I]command[/I]

----------------

Directory Operations:

Show current directory
    pwd


Make directory dir
    mkdir [I]dir[/I]


Change directory to dir
    cd [I]dir[/I]


Go up a directory
    cd ..


List files
    ls

----------------

LS Options:

Show all (including hidden)
    ls -a


Recursive list
    ls -R


Reverse order
    ls -r


Sort by last modified
    ls -t


Sort by file size
    ls -S


Long listing format
    ls -l


One file per line
    ls -1


Comma-separated output
    ls -m


Quoted output
    ls -Q

----------------

File Permissions:

Change mode of file to 775
    chmod 775 [I]file[/I]


Recursively chmod folder to 600
    chmod -R 600 [I]folder[/I]


Change file owner to user and group to group
    chown [I]user[/I]:[I]group[/I] [I]file[/I]

----------------

That's all I will be posting. :p

Source - You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo