search

Linux Command Line Cheat Sheet


Basic Commands
ls   
ls -a
ls -l
cd
cd folder/
pwd
mkdir - make directory
mkdir -p folder/folder/ - create multi level folders
List distro info
cat /etc/*-release
lsb_release -a
cat /proc/version
Adding users and group
adduser user addgroup group adduser user group (re-login for it to take effect)
Remove password from a user
passwd -d <user>
Add to a remote file over ssh
Replace all: echo "a" | ssh user@host "cat > <file>"
Append: echo "a" | ssh user@host "cat >> <file>"

Nano Stuff

Select Alt-A
Cut CTRL-K

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

close
Categories

Hi, guest!

settings