-
-
Notifications
You must be signed in to change notification settings - Fork 17
OTS ‐ File Management
By default, you are in your user folder:
origin/(C) Users/[Username]
This command lists the files in the specified directory in the terminal. You can use ls
without any arguments to list all files in the current working directory. Alternatively, you can specify a path to list files in a different directory. For example:
ls /Downloads
This command will list all files in the "Downloads" directory.
ls
# Lists all files in the current working directory
ls /Documents
# Lists all files in the "Documents" directory
la
is similar to ls
but it lists every file in your system, which can be very useful for finding files that have become inaccessible to the user.
la
# Lists all files in the system
Sets the working directory of the terminal system.
cd "/(A) System"
# Goes to a specific path
cd "My Folder"
# Goes into a folder called "My Folder"
cd Downloads
# Goes to a relative directory
Returns the working directory of the terminal system.
pwd
# Returns the current directory
Concatenates a specified file to the terminal.
cat filename.txt
# Displays the contents of filename.txt
cat "My Document.docx"
# Displays the contents of "My Document.docx"
Deletes a specified file immediately.
rm filename.txt
# Deletes filename.txt
rm 1234
# Deletes the file with the ID 1234
To list all files in the "Downloads" directory:
ls /Downloads
To navigate to the "Documents" directory from your user folder:
cd Documents
To navigate to a directory named "Projects" within "Documents":
cd Documents/Projects
To see your current working directory:
pwd
To display the contents of a text file named "notes.txt":
cat notes.txt
To delete a file named "old_file.txt":
rm old_file.txt
To delete a file using its ID, for instance, ID 5678:
rm 5678
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here