LINUX and more

LINUX  and more

Share

Learn Linux, share your Linux knowledge and ecperience with others.

Photos from White Rose's post 16/02/2023
Photos from Coding Space's post 22/11/2022
26/07/2022

sl
Steam locomotive command.

Type su comand to switch to the root account & execute the sl command with administrative access.
Type exit to return to sysadmin account.

26/07/2022

sudo
Allows a user to execute a command as another user without creating a new shell. Can be used to switch to other user accounts as well. To specify a different user use the (-u) option.

sudo -u

26/07/2022

su
Allows you to temporarily act as a different user.

su -
su -l
su - -login

After exececuting su command a password is required to proceed.

exit
Used to logout and return to the sysadmin account.

~ # exit
logout
~$

26/07/2022

..
(Double dots)
Always represents one directory higher, relative to the current directory. Sometimes reffered to as the 'parent directory'.

Ex: to move from the 'Art' directory back to 'School' directory which is one directory higher or the parent directory of the 'Art' directory;

~/Documents/School/Art$ cd..


(Single dot)
Represent the current directory.

~
Represent the home directory of the current user.

Ex: imagine that you are in the 'School' directory and want to return to 'home' directory;
~/Documents/School $ cd~

26/07/2022

File Types.

25/07/2022

ls & ls -l commands

25/07/2022

ls -l Documents

Want your school to be the top-listed School/college in Dambulla?

Click here to claim your Sponsored Listing.

Location

Website

Address


Dambulla