linux2 Flashcards
cd
Changes the current working directory to another directory
cp
copy files ex: copy file1 to file2 means copy file
mkdir
creates a new directory
mkdir newdir
creates a new directory called “newdir”
clear
used to clear the command line interface of all text/past command entries
cat
used to view the contents of a file without editing options
ex:cat file1=show me files in file1
less
Used to view the contents of a file that won`t fit on one screen
Q Key
Exit
Text editors in inux
vi(m)
nano
gedit
vi(m)
Default text editor in linux
nano
requires installation
user friendly
gedit
GUI requires installation of a desktop environment like gnome or KDE
shutdown -h
shut down the system completely powered off state
-h stand for halting with no time delay
shutdown -r now
shutdown and reboot system
su(substitute user)
allows to switch user credentials
ex:regular-admin
the command: sudo su