wc -l *Even better, you can have the results sorted by line numbers:
wc -l * | sort -n -k1-n compare according to string numerical value
-k# define start position
wc -l * wc -l * | sort -n -k1adduser usernameuseradd username~/ failed, I had to sudo mkdir /home/alice.useradd -D shows the defaults of useradd. You can change the shell to bash by specifying useradd -D -s /bin/bash
. Then you can use useradd alice followed by passwd alice to set its password. BUT!! This still doesn't automatically make /home/alice for youadduser alice worked beautifully# adduser alice
Adding user `alice' ...
Adding new group `alice' (1001) ...
Adding new user `alice' (1001) with group `alice' ...
Creating home directory `/home/alice' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for alice
Enter the new value, or press ENTER for the default
Full Name []: Alice P Hacker
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
... Why does it care about the room number? haha
~/.bash_historyps or echo $SHELLgrep username /etc/passwd/etc/passwd from /bin/sh to /bin/bash/etc/shells/etc/skel directory. "The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd program." ~ source scp [-r] source destination scp -r path/to/src-dir/ username@machine-to-go-to-IP:/path/to/dest-dir
SHIFT+CTRL+ALT+Arrow Right or Leftstat [file_or_dir]echo $0 or ps -p $$ finds what shell I'm in.