0% found this document useful (0 votes)
26 views3 pages

2.1 Basic Command Lab

The document shows various Linux commands being used to navigate directories, manage files and folders, set system time/date, and view system information. It contains a series of commands demonstrating cd, ls, pwd, mkdir, cp, mv, rm, cal, date, timedatectl, hostnamectl, uname, and history.

Uploaded by

Aman Tiwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

2.1 Basic Command Lab

The document shows various Linux commands being used to navigate directories, manage files and folders, set system time/date, and view system information. It contains a series of commands demonstrating cd, ls, pwd, mkdir, cp, mv, rm, cal, date, timedatectl, hostnamectl, uname, and history.

Uploaded by

Aman Tiwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

# cd

# ls
# pwd
# cd /etc/sysconfig/network-scripts/
# pwd
# cd
# cd /
# ls
# pwd
# ls
# cd etc
# ls
# pwd
# cd sysconfig
# pwd
# cd network-scripts
# pwd
# cd ..
# pwd
# cd ..
# pwd
# cd ..
# pwd
# cd /etc/sysconfig/network-scripts/
# cd ..
# pwd
# cd ..
# pwd
# cd sysconfig/network-scripts/
# whoami
# pwd
# cd
# su - student
$ cd sysconfig/network-scripts
$ pwd
$ cd
$ pwd
$ logout
# pwd
# cd
# ls
# cd Desktop/
# pwd
# ls
# mkdir redhat1
# mkdir redhat2 redhat3 redhat4
# mkdir redhat1/Linux
# mkdir Ubuntu/Ubuntu1
# mkdir -p Ubuntu/Ubuntu1
# mkdir Centos /Centos
# cat > Linux.txt
# cat Linux.txt
# cat >> Linux.txt
# cat Linux.txt
# cat > Linux.txt
# cat Linux.txt
# cat > index.html
# cat > file
# cat file '
# cat file
# useradd manish
# useradd manish1
# cd
# clear
# cp Dekstop/Linux.txt /home/manish
# cp Desktop/Linux.txt /home/manish
# ls /home/manish/
# cd /home/manish/
# ls
# cd
# cp /root/Desktop/Centos/ /home/manish/
# cp -r /root/Desktop/Centos/ /home/manish
# ls /home/manish/
# ls /home/manish
# mv Desktop/redhat4 /tmp
# ls /tmp
# mv Desktop/redhat1 Desktop/Manish
# mv Desktop/Manish/ Linux1234
# ls
# pwd
# mv /root/Linux1234/ Desktop/ManishS
# mv Desktop/ManishS/ Desktop/.ManishS
# ls Desktop/
# ls -a Desktop/
# ls Desktop/
# ls -a
# ls -a Desktop
# man ls
# man cp
# cp --help
# ls --help
# ls -a Desktop
# ls -a Desktop/
# mv Desktop/.ManishS/ Desktop/Manish
# cd Desktop/
# rm Linux.txt
# rm -f index.html
# rm redhat2
# rm -r redhat2
# rm -rf Centos/
# mkdir asd aqw a1 a2 aqwe a34x rfd wdc as2q fhjk
# rm -rf a*
# mkdir asd aqw a1 a2 aqwe a34x rfd wdc as2q fhjk
# rm -rf a??
# mkdir asd aqw a1 a2 aqwe a34x rfd wdc as2q fhjk
# pwd
# rm -rf *
# cd
# cal
# cal 1992
# cal 11 1993
# date
# date -s 18:14:00
# date -s 2018-02-09
# date -s '2018-02-11 18:20:00'
# # Only RHEL7
# timedatectl
# timedatectl set-time '2018-02-11 18:20:00'
# timedatectl set-time 18:19:00
# timedatectl
# timedatectl set-time '2018-02-11 18:22:00'
# hostnamectl
# hostnamectl set-hostname manish1.redhat.com
# hostnamectl
# # Above RHEL7 Command
# uname -r
# uname -a
# man uname
# history
# echo $SHELL
# echo $HISTSIZE
# history

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy