601 | | '''who am i''': |
602 | | '''df -dh''': |
603 | | '''man''': |
604 | | '''date''': |
605 | | '''time''': |
606 | | '''ln''': |
607 | | '''ps''': |
608 | | '''kill''': |
| 601 | - '''who''': who command will give you information about who is logged on the system. |
| 602 | {{{ |
| 603 | $ who |
| 604 | root pts/0 2014-10-10 23:07 (10.104.33.101) |
| 605 | paul pts/1 2014-10-10 23:30 (10.104.33.101) |
| 606 | laura pts/2 2014-10-10 23:34 (10.104.33.96) |
| 607 | }}} |
| 608 | * '''whoami''' command tells you your username |
| 609 | {{{ |
| 610 | $ whoami |
| 611 | paul |
| 612 | }}} |
| 613 | |
| 614 | - '''df -dh''': report file system disk space usage |
| 615 | {{{ |
| 616 | $ df -h |
| 617 | Filesystem Size Used Avail Use% Mounted on |
| 618 | /dev/sda1 451G 141G 287G 33% / |
| 619 | udev 10M 0 10M 0% /dev |
| 620 | tmpfs 774M 19M 755M 3% /run |
| 621 | .. |
| 622 | .. |
| 623 | }}} |
| 624 | |
| 625 | - '''man''': Will give you man pages (also called manual pages) on your Unix or Linux computer |
| 626 | {{{ |
| 627 | $man ls |
| 628 | $man cp |
| 629 | }}} |
| 630 | - '''date''': Will give you the date and time of the system |
| 631 | {{{ |
| 632 | $ date |
| 633 | Thu Nov 17 16:01:52 IST 2016 |
| 634 | }}} |
| 635 | - '''ln''': Use to create links between files. Frequently use with '''-s''' to create symbolic links |
| 636 | {{{ |
| 637 | $ ln -s file2 symlink_to_file2 |
| 638 | }}} |
| 639 | - '''ps''': report a snapshot of the current processes. frequently use with -aux. |
| 640 | {{{ |
| 641 | $ ps -aux |
| 642 | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND |
| 643 | root 1 0.0 0.0 111476 3400 ? Ss 07:39 0:01 /sbin/init |
| 644 | root 2 0.0 0.0 0 0 ? S 07:39 0:00 [kthreadd] |
| 645 | root 3 0.3 0.0 0 0 ? S 07:39 1:40 [ksoftirqd/0] |
| 646 | }}} |