You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -555,9 +555,8 @@ \subsection{Disks and file systems}
555
555
\begin{itemize}
556
556
\item FAT32 (including extensions) is old-fashioned and not reliable FS, but still common in various flash disks and memory cards
557
557
\item NTFS (basic Windows FS) and FAT do not support UNIX permissions, so they can't be used as system partition in Linux; see also \href{https://en.wikipedia.org/wiki/Comparison_of_file_systems}{full comparison}
558
-
\item Btrfs, ext4, XFS and ZFS are not accessible from Windows at all
558
+
\item Btrfs, ext4, XFS and ZFS are not accessible from Windows at all (Linux mainly uses ext4)
559
559
\item Btrfs, XFS and ZFS are the most advanced FS in common use
560
-
\item Linux users use mainly ext4, less Btrfs or others
561
560
\end{itemize}
562
561
\end{frame}
563
562
@@ -617,8 +616,8 @@ \subsection{Disks and file systems}
617
616
\begin{frame}[fragile]{Mounting and unmounting disks and removable media}
618
617
\begin{itemize}
619
618
\item Mounting and unmounting of devices require root privileges
620
-
\item In modern Linux distributions, mounting is done automatically and media are visible in \texttt{/media} or \texttt{/run/media}
621
-
\item In Linux, physical disks are named from \texttt{sda} to \texttt{sdz}, each disk has partitions (at least one) numbered from \texttt{1}, e.g. \texttt{sda1}, \texttt{sda2}, \texttt{sdb1},~\ldots{ }--- all are accessible in \texttt{/dev} directory (\texttt{/dev/sdc3},~\ldots)
619
+
\item In modern desktop Linux distributions, mounting is done automatically and media are visible in \texttt{/media} or \texttt{/run/media}
620
+
\item In Linux, physical disks are named from \texttt{sda} to \texttt{sdz}, each disk has partitions (at least one) numbered from \texttt{1}, e.g. \texttt{sda1}, \texttt{sda2}, \texttt{sdb1},~\ldots{ }--- all are in \texttt{/dev} (e.g. \texttt{/dev/sdc3})
622
621
\item Target mount point must exist before mounting
# file if you want to have the remote X11 authentification data to
763
759
# expire after twenty minutes after remote login.
764
760
ForwardX11Trusted yes
761
+
# ...
765
762
\end{bashcode}
766
763
\end{frame}
767
764
@@ -797,15 +794,13 @@ \subsection{Files and directories}
797
794
\item Linux allows \alert{any} character in file name, except \alert{slash} (\texttt{/}), so including anything on keyboard as well as line break (\alert{!}) --- be conservative\ldots
798
795
\end{itemize}
799
796
\begin{bashcode}
800
-
mkdir My New Directory # Produces THREE directories (mkdir creates
801
-
# directories; spaces separate parameters)
802
-
# Solutions:
797
+
mkdir My New Directory # Produces THREE directories (mkdir creates dirs;
798
+
# spaces separate parameters). Solutions:
803
799
mkdir "My New Directory" # (you can use single quotes '...' as well) or
804
800
mkdir My\ New\ Directory # "\" escapes following character
805
801
rmdir My\ New\ Directory # Same problem and solution when removing it
806
802
touch \* # Creates new empty file named just * (yes, asterisk)
807
-
rm * # What would be removed? :-)
808
-
rm \* # This works... Or rm '*'
803
+
rm * # What would be removed? :-) Solution: rm \* or rm '*'
809
804
\end{bashcode}
810
805
\begin{itemize}
811
806
\item Files and directories starting by \alert{dot} (\texttt{.}) are hidden by default (typically user settings and application data in user home)
@@ -968,8 +963,7 @@ \subsection{Permissions}
968
963
chmod -R # Recursive (including subdirectories)
969
964
chmod +x script.sh # Make script.sh executable for everyone
970
965
chmod o-r mydir # Remove read permission from others on mydir
971
-
chmod 600 FILE1 FILE2 # Make both files readable and
972
-
# writable only by their owner
966
+
chmod 600 FILE1 FILE2 # Make both files R/W only by their owner
973
967
chmod 000 FILE # No one can do anything - owner or root must add
974
968
# some permissions before any other action...
975
969
chmod 777 * # All permissions for everyone on everything (no recursive)
\begin{frame}{The command line can has various look and feel\ldots}{Change colors, font size, etc. for your terminal to like it more and work comfortably}
0 commit comments