• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

Useful Linux Commands

September 16, 2011 by Webhead

I recently had to move a server and needed to set up another server. I’m a linux newbie so I needed to look up a lot of things. Below are some of the more common commands that I needed: (replace with your own command/name).

Create a short name or alias to run a command.

alias =''

Create a symbolic link to another directory/file

ln -s

http://kb.iu.edu/data/abbe.html

Transfer files from your computer to a server

scp  :

Transfer files from a server to another server.

scp : :

Change file owner w/ recursion

chown -R :

Change file permissions for web w/ recursion

chmod -R 644

Find a file

find / -name

http://content.hccfl.edu/pollock/unix/findcmd.htm

Add a user

sudo useradd -d /home/ -m
sudo passwd

Change a users’ primary group

usermod -g

Add a group

groupadd

Add a user to a group

usermod -G

Make everything in a dir owned by the dir group owner

sudo chmod g+s

Find largest 10 files in wp-content folder

find wp-content -type f -exec du -h {} + | sort -rh | head -n 10


Filed Under: Server Stuff Tagged With: apache, linux

Primary Sidebar

Topics

apache apple block editor chrome cms css debug eCommerce embed firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization macOS mac os x ms sql mysql open source optimize php php 7.2 rest api seo svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools
  • Uncategorized