Category Archives: Linux Command

cp command – copy all files under one folder to another folder

cp -r /home/hope/files/* /home/hope/backup Copies all the files, directories, and subdirectories in the files directory into the backup directory. Advertisements

Posted in Linux Command | Tagged | Leave a comment

LInux 101 Hacks

PREVIOUS POST: 3 UNIX / Linux basename Command Examples NEXT POST: 3 UNIX / Linux insmod Command Examples 3 UNIX / Linux groupadd Command Examples by RAMESH What is groupadd? 3 groupadd examples Syntax and Options Related Commands   What is groupadd? groupadd … Continue reading

Posted in Linux Command | Tagged , | Leave a comment

Show All Running Processes in Linux

by NIXCRAFT on OCTOBER 12, 2006 · 88 COMMENTS· last updated at JULY 6, 2012 How do I see all running process in Linux? You need to use the ps command. It provide information about the currently running processes, including … Continue reading

Posted in Linux Command | Tagged , | Leave a comment

Adding Linux Users

Every user who has access to a Linux system needs a login and a password. Each user must belong to a primary group and for security or access purposes can belong to several secondary groups. In order to create new … Continue reading

Posted in Linux Command | Tagged | Leave a comment

Linux/Unix Command: useradd

NAME useradd – Create a new user or update default new user information SYNOPSIS useradd [-c comment] [-d home_dir] [-e expire_date] [-f inactive_time] [-g initial_group] [-G group[,…]] [-m [-k skeleton_dir] | -M] [-n] [-o] [-p passwd] [-r] [-s shell] [-u uid] login useradd -D [-g default_group] [-b default_home] [-e default_expire_date] [-f default_inactive] [-s default_shell] DESCRIPTION Creating New Users When invoked without … Continue reading

Posted in Linux Command | Tagged | Leave a comment

Linux/Unix Command: grouppadd

NAME groupadd – Create a new group SYNOPSIS groupadd [-g gid [-o]] [-r] [-f] group DESCRIPTION The groupadd command creates a new group account using the values specified on the command line and the default values from the system. The new group will be entered into … Continue reading

Posted in Linux Command | Tagged | Leave a comment

VI – Copy and paste more than one line text

The command ‘Y’ or ‘yy’ copies (yanks) one or more lines. To copy one line, two lines, 10 lines, and all lines to the end of the file, respectively: Y 2Y 10Y yG To paste the text contained in the buffer … Continue reading

Posted in Linux Command | Tagged , , | Leave a comment